[R] mclogit

Philippe Galipeau philippe.galipeau17 at gmail.com
Mon Apr 14 21:34:39 CEST 2014

have you found a solution for your question 1?

Le jeudi 11 octobre 2012 19:03:16 UTC-4, Katelyn Weaver a écrit :

> Hello, 
> I am new to R and am trying to complete a mixed conditional logistic 
> regression. There are two issues that I am currently having: 
> 1. I am not sure how to insert the random effects variable into the 
> equation. My current equation is 
> model<-mclogit(Presence~AllWet+AllAg+strata(Pair)) 
> where Presence is a binary value (present or absent), AllWet and AllAg 
> shows the proportion of the location polygons covered by each habitat 
> type, 
> and Pair is showing the paired used and random polygons. The random 
> effects 
> that I want to control for are Bird ID (same bird at multiple locations). 
> Does anyone know how to write the formula properly to include the random 
> effects? 
> 2. When I enter the formula I keep getting Error: could not find function 
> "mclogit" 
> When I was using the clogit function I had to add the "survival" package 
> to 
> perform the analysis. What package do I have to add for mclogit? 
> Any assistance on this subject would be greatly appreciated. 
> Thank you, 
> Katelyn 
> -- 
> Katelyn Weaver 
> M.Sc. Candidate 
> Long Point Waterfowl 
> Western University 
> Cell: 519-619-4472 
> Email: kwe... at uwo.ca <javascript:> 
> www.longpointwaterfowl.org 
>         [[alternative HTML version deleted]] 
> ______________________________________________ 
> R-h... at r-project.org <javascript:> mailing list 
> https://stat.ethz.ch/mailman/listinfo/r-help 
> PLEASE do read the posting guide 
> http://www.R-project.org/posting-guide.html 
> and provide commented, minimal, self-contained, reproducible code. 

More information about the R-help mailing list