search for: pkyr

Displaying 1 result from an estimated 1 matches for "pkyr".

Did you mean: pkr
2009 May 06
1
Add trend line to XYPlot using a subset of the original data
...The additional trend line always has the wrong slope. The slope of the line should be close to zero, but positive. It always plots close to zero, but negative. I've tried adding the following lines to the above panel.lines(x[21:98],exp(predict.lm(lm(log(y[21:98])~x[21:98]))),col=5) or pkyr<-x>1927 panel.lines(x[pkyr],exp(predict.lm(lm(log(y[pkyr])~x[pkyr]))),col=4) or pkyr<-x>1927 my.lm<-lm(log(y[pkyr])~x[pkyr]) panel.lines(x[pkyr],exp(x[pkyr]*(my.lm$coef[2])+my.lm$coef[1]),col=3) or panel.lines(x[pkyr],exp(x[pkyr]*(-my.lm$coef[2])+my.lm$coef[1]),col=3)...