10.07.2015 Views

Multiple Linear Regression

Multiple Linear Regression

Multiple Linear Regression

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Here is an example of how it works, based on a question from R-help. We would like to fit amodel that looks like> set.seed(1)( ) 2 2πY = α + β sin360 x − γ + ɛ.> x y acc.nls summary(acc.nls)Formula: y ~ a + b * (sin((2 * pi * x/360) - c))^2Parameters:Estimate Std. Error t value Pr(>|t|)a 0.95884 0.23097 4.151 4.92e-05 ***b 2.22868 0.37114 6.005 9.07e-09 ***c 3.04343 0.08434 36.084 < 2e-16 ***---Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1Residual standard error: 1.865 on 197 degrees of freedomNumber of iterations to convergence: 3Achieved convergence tolerance: 6.554e-0831

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!