Closed paternogbc closed 7 years ago
Found the problem in this bit of code:
intra.clade[[j]] <- clade_phylm(formula, data=full.data, phy=phy, model=model,
clade.col=clade.col, n.species=n.species, n.sim=n.sim,
track = FALSE, verbose = FALSE, ...)
formula should be re-set to respV ~ predV
otherwise it would just run the model with the raw data.
Fix:
intra.clade[[j]] <- clade_phylm(formula = respV ~ predV, data=full.data, phy=phy, model=model,
clade.col=clade.col, n.species=n.species, n.sim=n.sim,
track = FALSE, verbose = FALSE, ...)
However, I would appreciate if you could double check this issue for me =)
Wow!!! Well spotted! Sorry about that. Your solution is correct. I checked all the other intra functions and this is the only one with this problem.
Perfect @caterinap ! Thanks.
Hey @caterinap ,
I am implementing the plots for intra_clade_xxx but I think there is something wierd with slope estimates.
Because when running the simple intra_phylm () with the same data and formula, the estimates values are very different. You can see that with summary. Any ideas? (see below)
Single intra_phylm()