Hi
How do you find additive effect in a linear model in R? What command do you run to get that output?
Here is an example lm: (Yr_SV ~ Marker34, data = DAT)
Any advice will be helpful.
Thanks.
Hi
How do you find additive effect in a linear model in R? What command do you run to get that output?
Here is an example lm: (Yr_SV ~ Marker34, data = DAT)
Any advice will be helpful.
Thanks.
I am not sure that your question makes sense because there are no additive effects in the model that you specified. Your model makes the assumption that there is a linear relationship between Yr_SV
and Marker34
. A coefficient (estimate) would be calculated for just Marker34
.
Your model would become additive if you had something like this:
Yr_SV ~ Marker34 + Marker35
Now, in this additive model, coefficients will be calculated for both Marker34
and Marker35
, and you can list these by doing:
model <- lm(Yr_SV ~ Marker34 + Marker35, data = DAT)
summary(model)
Kevin
Use of this site constitutes acceptance of our User Agreement and Privacy Policy.