Hi
i have few clarification regarding the output from the fitted(object).
I'm creating a object using the following formula
dataset <- read.csv("~/data.csv")
obj = lm (formula="log(y+1)~log(x1+1)+(log(x2+1)+log(x3+1)", data=dataset)
fitted(obj)
here the output of the fitted(obj) considers the log(x1+1) or just log(x1).
--
View this message in context: http://r.789695.n4.nabble.com/fitted-values-in-lm-function-tp4075426p4075426.html
Sent from the R help mailing list archive at Nabble.com.
fitted.values in lm function
3 messages · Joshua Wiley, arunkumar1111
log(x1+1) just like your formula best, Josh
On Tue, Nov 15, 2011 at 9:54 PM, arunkumar1111 <akpbond007 at gmail.com> wrote:
Hi
?i have few clarification regarding the output from the fitted(object).
I'm creating a object using the following formula
dataset ?<- read.csv("~/data.csv")
obj = lm (formula="log(y+1)~log(x1+1)+(log(x2+1)+log(x3+1)", data=dataset)
fitted(obj)
here the output of the fitted(obj) ?considers the log(x1+1) or just log(x1).
--
View this message in context: http://r.789695.n4.nabble.com/fitted-values-in-lm-function-tp4075426p4075426.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.
Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS Statistical Consulting Group University of California, Los Angeles https://joshuawiley.com/
Thanks Josh -- View this message in context: http://r.789695.n4.nabble.com/fitted-values-in-lm-function-tp4075426p4076397.html Sent from the R help mailing list archive at Nabble.com.