PDA

View Full Version : Help with R code


aynkbyrd
02-01-08, 10:53 AM
I am trying to run some R code and I keep getting the following errors

Error: unexpected input in "names(mse)<-c("LSE","RIDGE","LASSO","ENET","LQ","LQ2", ¡"
> names(pse)<-c("LSE","RIDGE","LASSO","ENET","LQ","LQ2", ¡°LQFU¡±)
Error: unexpected input in "names(pse)<-c("LSE","RIDGE","LASSO","ENET","LQ","LQ2", ¡"

does anyone know what those errors could be reffering to?


Thanks!!!

below is the park of my code where I believe the error is

mse<-as.data.frame(cbind(lse=lse$mse,ridge=rid$mse,lass o=lasso$mse,enet=enet$mse,lq=lq$mse,lq2=lq2$mse, lqfu=lqfu$mse))
pse<-as.data.frame(cbind(lse=lse$pse,ridge=rid$pse,lass o=lasso$pse,enet=enet$pse,lq=lq$pse,lq2=lq2$pse, lqfu=lqfu$pse))
names(mse)<-c("LSE","RIDGE","LASSO","ENET","LQ","LQ2", ¡°LQFU¡±)
names(pse)<-c("LSE","RIDGE","LASSO","ENET","LQ","LQ2", ¡°LQFU¡±)

zenox
02-22-08, 05:36 PM
I think your issue is with the ¡°LQFU¡±. Try placing it in strings ex: "¡°LQFU¡±"