How do you find additive effect in linear model?
1
1
Entering edit mode
5.1 years ago
wkmustahs21 ▴ 30

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 • 668 views
ADD COMMENT
1
Entering edit mode
5.1 years ago

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

ADD COMMENT

Login before adding your answer.

Traffic: 1563 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6