This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How do you find additive effect in linear model?

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.

r

1 answer

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

Log in to answer this question.