[R-sig-ME] conditional logistic & weight

knouri nouri4 at yahoo.com
Tue Dec 15 17:27:24 CET 2015


Hi all,I have the following data (mydat) and would like to fit a conditional logistic regression model in R.
mydat:
id  case  exposure   wt
1      1          1          2
1      0          0          2
2      1          1          2 
2      0          0          2 
3      1          1          1 
3      0          0          1 
4      1          0          2 
4      0          1          2 
The R function "clogit" is for such purposes but as you might know it disregards weight option.
I tried function "mclogit" which seems that it considers the weight option:
fit = mclogit(cbind(case,id) ~ exposure, weights=wt, data=mydat)
summary(fit)
The answer, however, doesn't seem to be correct. Could anyone please provides me with some information in this regards,
Best,Keramat Nourijelyani, PhD 

	[[alternative HTML version deleted]]



More information about the R-sig-mixed-models mailing list