10.07.2015 Views

Using R for Introductory Statistics : John Verzani

Using R for Introductory Statistics : John Verzani

Using R for Introductory Statistics : John Verzani

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.

Linear regression 297Let y t be the left-hand side. This may be written asbecause r can be interpreted as an unconstrained growth rate and K as a carrying capacity.Fit the model to the bay check (<strong>Using</strong>R) data set and find values <strong>for</strong> r and K. To find y tyou can do the following:> attach(baycheck)> n = length(year)> yt = log(Nt[−1]/Nt[−n])> nt = Nt[−n]Recall that a negative index means all but that index.

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

Saved successfully!

Ooh no, something went wrong!