Hi I am looking for a efficient way to estimate all parameters in your data.frame set using a specific function: for example ln(T)=b_0 + b_1*ln(Y_i*Y_j) + b_2*ln()+ ... + etc. Thanks, Ph -- View this message in context: http://r.789695.n4.nabble.com/OLS-Estimating-tp4580055p4580055.html Sent from the R help mailing list archive at Nabble.com.
On 23.04.2012 12:42, phillip03 wrote:> Hi > > I am looking for a efficient way to estimate all parameters in your > data.frame set using a specific function: > > for example > ln(T)=b_0 + b_1*ln(Y_i*Y_j) + b_2*ln()+ ... + etc.Sounds like you are looking for lm(). Uwe Ligges> Thanks, > Ph > > -- > View this message in context: http://r.789695.n4.nabble.com/OLS-Estimating-tp4580055p4580055.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.
So how would I use the lm() to estimate b_0 and b_1 for example???? My Y_i and Y_j are data observations how does the lm() use my data.frame ? -- View this message in context: http://r.789695.n4.nabble.com/OLS-Estimating-tp4580055p4581048.html Sent from the R help mailing list archive at Nabble.com.
On Apr 23, 2012, at 12:53 PM, phillip03 wrote:> So how would I use the lm() to estimate b_0 and b_1 for example???? > > My Y_i and Y_j are data observations how does the lm() use my > data.frame ?Have your read "An Introduction to R". Section 11 would appear to cover all the needed topics. -- David Winsemius, MD West Hartford, CT