search for: tiina

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

Did you mean: tina
2010 Dec 26
1
Question about mars() -function
...maller R^2. So can you please tell me some information about why the MARS model R^2 is so big? How can I get the MARS model?s correct R^2 in R-projector some another way than in the following example or by calculating it myself using R^2-formula? I hope you can reply soon. Best regards, Tiina Hakanen library(ElemStatLearn) library(mda) data<-ozone m<-mars(data[,-1], data[,1], nk=4) m$factor[m$s,] m$cuts[m$s,] m$coef marsmodel<-lm(data[,1]~m$x-1) summary(marsmodel) Call: lm(formula = data[, 1] ~ m$x - 1) Residuals: Min 1Q Median 3Q Max -36.264 -15.993 -2...