Sunday, 15 September 2013

r - Using glmer for logistic regression, how to verify response reference -



r - Using glmer for logistic regression, how to verify response reference -

my question quite simple, i've been unable find clear reply in either r manuals or online searching. there way verify reference response variable when doing logistic regression glmer?

i getting results consistently run exact opposite of theory , think response variable must reversed intention, have been unable verify.

my response variable coded in 0's , 1's.

thanks!

you simulate info know true effects ... ?simulate.mermod makes relatively easy. in case,

the effects interpreted in terms of effect on log-odds of response of 1 e.g., slope of 0.5 implies 1-unit increment in predictor variable increases log-odds of observing 1 rather 0 0.5. for questions of sort, glmer inherits framework glm. in particular, ?family states:

for ‘binomial’ , ‘quasibinomial’ families response can specified in 1 of 3 ways:

1. factor: ‘success’ interpreted factor not having first level (and hence of having sec level). 2. numerical vector values between ‘0’ , ‘1’, interpreted proportion of successful cases (with total number of cases given ‘weights’). 3. two-column integer matrix: first column gives number of successes , sec number of failures.

your info (common) special case of #2 (the "proportion of successes" either 0 or 100% each case, because there 1 case per observation; weights vector vector of ones default).

r logistic-regression lme4

No comments:

Post a Comment