Closed golamrabbani268 closed 4 years ago
After repeating the steps from another project, it seems that the problem is most probably with some particular setting of R on my computer. Still looking for a solution to this.
Hi,
The interpretation of the categorical covariates is in terms of the expected difference between the group shown and the base group. Thus, the base group isn't shown because it doesn't it have it's own covariate.
This is standard practice in R and most categorical covariate regression software I am aware of. The default categorical covariates follow the structure of lm
and glm
in R. Does this make sense? Happy to elaborate if you aren't as familiar with these types of models.
Brya
Hi, thanks a lot for your response. I understand what you said. How would I go about to change the base group against which the other groups are compared with? For example, how can I compare all of the other groups against Rhizome instead of Leaf? Thanks, Golam
There are a few ways you could do this, depending on the structure of your data. I'd recommend factor re-ordering using forcats::fct_relevel()
Thanks a lot for your help! I'll try that out. I'll close this issue then. Golam
I ran the following code and got the following output. Structure.DNA Extracted.from contains 4 different values: Leaf, Rhizome, Root, and Sediment. However, the summary does not show the coefficient and other values for the Leaf group.
Also tried using another categorical variable but that also does not show the first group.
Is there something that I am forgetting to do and/or how can get the output for all groups? Thanks!