0% found this document useful (0 votes)
41 views1 page

Functia LM in Rstud

Two linear regression models were analyzed. The first model found a statistically significant relationship between variables rhp and rm, with rm explaining 26% of the variation in rhp. The second model also found a statistically significant relationship between variables rcis and rm, with rm explaining 30% of the variation in rcis. Both models had p-values below 0.001.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
41 views1 page

Functia LM in Rstud

Two linear regression models were analyzed. The first model found a statistically significant relationship between variables rhp and rm, with rm explaining 26% of the variation in rhp. The second model also found a statistically significant relationship between variables rcis and rm, with rm explaining 30% of the variation in rcis. Both models had p-values below 0.001.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

> plot.

ts(sp)
> model1 <- lm(rhp~rm)
> summary(model1)
Call:
lm(formula = rhp ~ rm)
Residuals:
Min
1Q Median
3Q
Max
-0.067823 -0.008578 0.001457 0.010288 0.063055
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) -0.0003514 0.0010048 -0.350 0.727
rm
1.3888888 0.1473742 9.424 <2e-16
(Intercept)
rm
***
--Signif. codes: 0 *** 0.001 ** 0.01 * 0.05 . 0.1 1
Residual standard error: 0.01587 on 249 degrees of freedom
Multiple R-squared: 0.2629,
Adjusted R-squared: 0.26
F-statistic: 88.82 on 1 and 249 DF, p-value: < 2.2e-16
> model2 <- lm(rcis~rm)
> summary(model2)
Call:
lm(formula = rcis ~ rm)
Residuals:
Min
1Q Median
3Q
Max
-0.030716 -0.004447 -0.000197 0.003870 0.067505
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 0.0006006 0.0005640 1.065 0.288
rm
0.8572964 0.0827192 10.364 <2e-16
(Intercept)
rm
***
--Signif. codes: 0 *** 0.001 ** 0.01 * 0.05 . 0.1 1
Residual standard error: 0.008905 on 249 degrees of freedom
Multiple R-squared: 0.3014,
Adjusted R-squared: 0.2986
F-statistic: 107.4 on 1 and 249 DF, p-value: < 2.2e-16

>

You might also like