--
You received this message because you are subscribed to the Google Groups "geomorph R package" group.
To unsubscribe from this group and stop receiving emails from it, send an email to geomorph-r-pack...@googlegroups.com.
To post to this group, send email to geomorph-...@googlegroups.com.
Visit this group at https://groups.google.com/group/geomorph-r-package.
To view this discussion on the web, visit https://groups.google.com/d/msgid/geomorph-r-package/45bea1e7-0bf7-4392-9c5f-a8212f012bd0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Avi,advanced.procD.lm does not use the syntax of lme4. What you are doing wrong is to assume that the formula arguments in one function from a completely different package work in other functions in other packages. Unfortunately, the procD.lm and advanced.procD.lm functions do not have the same formula argument capability as lme4 (specifically specifying common or random intercepts).Mike
On Oct 30, 2017, at 9:45 AM, netbird....@gmail.com wrote:
--Hi,I'm trying to construct a mixed model to test for one fixed factor effect (treatment) using advanced.procD.lm ('type' is another fixed factor).I'd like to add the nested factors site/female as a random effect and use log(cs) as co-variance.Yet, when I try the syntax I know from lme4 package:advanced.procD.lm(shape ~log(cs)+(1+treat|site/female)+type, ~log(cs)+(1+treat|site/female)+type+treat, ...)I get an error:Error in procD.fit(f1, data = data, pca = FALSE, ...) :Your formula appears to have data embedded within objects(a '$' is part of the formula). It is not possible to reconcilethe location of the data from the object that contains it with thisfunction. Either use a geomorph data frame or liberate the data fromthe object and try again.What am I doing wrong?Any help will be appreciated,Avi
You received this message because you are subscribed to the Google Groups "geomorph R package" group.
To unsubscribe from this group and stop receiving emails from it, send an email to geomorph-r-package+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to geomorph-r-pack...@googlegroups.com.
To post to this group, send email to geomorph-...@googlegroups.com.
Visit this group at https://groups.google.com/group/geomorph-r-package.
To view this discussion on the web, visit https://groups.google.com/d/msgid/geomorph-r-package/1acb9539-b0a8-4a9f-9dac-9b7cf8b26634%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to geomorph-r-package+unsubscri...@googlegroups.com.
To post to this group, send email to geomorph-...@googlegroups.com.
Visit this group at https://groups.google.com/group/geomorph-r-package.
To view this discussion on the web, visit https://groups.google.com/d/msgid/geomorph-r-package/45bea1e7-0bf7-4392-9c5f-a8212f012bd0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "geomorph R package" group.
To unsubscribe from this group and stop receiving emails from it, send an email to geomorph-r-package+unsub...@googlegroups.com.
To post to this group, send email to geomorph-...@googlegroups.com.
Visit this group at https://groups.google.com/group/geomorph-r-package.
To unsubscribe from this group and stop receiving emails from it, send an email to geomorph-r-pack...@googlegroups.com.
To post to this group, send email to geomorph-...@googlegroups.com.
Visit this group at https://groups.google.com/group/geomorph-r-package.
To view this discussion on the web, visit https://groups.google.com/d/msgid/geomorph-r-package/3d87e57a-536a-4356-9a48-6c23859d1713%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "geomorph R package" group.
To unsubscribe from this group and stop receiving emails from it, send an email to geomorph-r-pack...@googlegroups.com.
To post to this group, send email to geomorph-...@googlegroups.com.
Visit this group at https://groups.google.com/group/geomorph-r-package.
To view this discussion on the web, visit https://groups.google.com/d/msgid/geomorph-r-package/b5656e29-2262-45a6-aeeb-ad2a45541681%40googlegroups.com.
Avi,You can have ~ female + type in both models; you can have ~type/female in both models; you can have ~ type * female in both models. You just have to decide - based on your point of view, preference, and personal dogma, as the researcher who knows these data - which way you want to model these alternative sources of variation for your test of treatment.I like to think of this as a null hypothesis test for var(treatment | other model effects). The other model effects can be dealt with in multiple ways. You choose the way and tell us why it is important.Cheers!Mike
On Oct 31, 2017, at 12:40 PM, netbird....@gmail.com wrote:
Hi Mike,--
In your example you nested a random factor within a fixed factor in the full model. I think I understand.
What I meant is, if I want to test for the treatment ('treat') effect (which is a fixed factor):
fit <- advanced.procD.lm(shape ~ female + type, ~ female + type + treat...)
Doesn't it matter that I include/mix a random factor (female) and a fixed factor (type) in the reduced model as if they are equal?
Avi
You received this message because you are subscribed to the Google Groups "geomorph R package" group.
To unsubscribe from this group and stop receiving emails from it, send an email to geomorph-r-package+unsub...@googlegroups.com.