search for: bslp

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

Did you mean: bsl
2011 Feb 07
0
Combining the results from two simple linear regression models
...ns so that I can come up with a single equation for the total weight regressed on year. In reality, there is missing data, so I can't just sum the data across datasets and come up with a regression on the summed data. Below is a program to reproduce what I am trying to figure out. ### aslp=50 bslp=-50 sda=20 sdb=100 yrs=0:10 a= rnorm(11,100,sda)+aslp*yrs b= rnorm (11,1000,sdb)+bslp*yrs ma=lm(a~yrs) mb=lm(b~yrs) pra=predict(ma,data.frame(yrs=yrs),interval='confidence') prb=predict(mb,data.frame(yrs=yrs),interval='confidence') ##combine the two regressions for a single equatio...