Re: [R] Squared correlation error

2009-12-30 Thread Max Kuhn
There is a function called defaultSummay in the caret package that will compute r-squared and rmse. Max On Dec 30, 2009, at 1:30 PM, Steve Lianoglou > wrote: Hi Nancy, On Wed, Dec 30, 2009 at 12:08 PM, Nancy Adam wrote: Hi everyone, Thanks a lot for the explanation… I tried the f

Re: [R] Squared correlation error

2009-12-30 Thread Steve Lianoglou
Hi Nancy, On Wed, Dec 30, 2009 at 12:08 PM, Nancy Adam wrote: > Hi everyone, > Thanks a lot for the explanation… > > I tried the following code to compute R2 for a regression system but it does > not work: > > my_svm_model <- function(myformula, mydata, mytestdata) > { > mymodel <- svm(myformu

[R] Squared correlation error

2009-12-30 Thread Nancy Adam
Hi everyone, Thanks a lot for the explanation… I tried the following code to compute R2 for a regression system but it does not work: my_svm_model <- function(myformula, mydata, mytestdata) { mymodel <- svm(myformula, data=mydata) k<- summary(mymodel) k$r.squared } Can anyone please