I have the logistic regression of the form
where
The corresponding R code is the following.
Regression_hat<-glm(Y~X,family=binomial(link='logit'))
I know that in order to test the joint hypothesis test
the linearHypothesis
test can be used with the following form:
linearHypothesis(Regression_hat,c("(Intercept)=0","X=0"),test=c("F"))
I would like to test (jointly) the hypothesis that both estimated parameters equal to two arbitrary values respectively. These two values are stored under different variable (e.g V1
and V2
) names in R although using variable names in the above code (linearHypothesis(Regression_hat,c("(Intercept)=V1","X=V2"),test=c("F"))
) does not work.