Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in code #5

Open
guha22 opened this issue Sep 8, 2018 · 0 comments
Open

Error in code #5

guha22 opened this issue Sep 8, 2018 · 0 comments

Comments

@guha22
Copy link

guha22 commented Sep 8, 2018

Dear Dr. Bolker,

Hope this email finds you well.

I have been trying to run the code on this page. The phylo_glmm code runs fine. However, the phylo_lmm code gives me the following error (though it still seems to fit a model).

In case you could let me know what I have done wrong I would be grateful.

Regards,
Guha


CODE:::

phylo_lmm_fit <- phylo_lmm(phen~cofactor+(1|phylo) +(1|obs),

  •                        data=datG,phylo=phylo,
    
  •                        control=lmerControl(check.nobs.vs.nlev="ignore",check.nobs.vs.nRE="ignore"),
    
  •                        phyloZ=phyloZ)
    

Warning messages:
1: In split.default(x, g) :
data length is not a multiple of split variable
2: In split.default(seq_along(x), f, drop = drop, ...) :
data length is not a multiple of split variable

lme4_resLMM <- rbind(coef(summary(phylo_lmm_fit))[,1:2],

  •                  cbind(matrix(unlist(VarCorr(phylo_lmm_fit))),NA))
    

phylo_lmm_fit
Linear mixed model fit by REML ['lmerMod']
REML criterion at convergence: 1563.8
Random effects:
Groups Name Std.Dev.
phylo (Intercept) 41.406
obs (Intercept) 0.443
Residual 9.690
Number of obs: 200, groups: phylo, 398; obs, 200
Fixed Effects:
(Intercept) cofactor
37.348 5.207

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant