I am new to using R.  Currently, I am using the logistf package to run logistic 
regression analysis.  When I run the following line of code:
 
attach(snpriskdata)
logisticpaper<-logistf(sascasecon~saspackyrs+newsbmi+EDUCATION+sasagedx+sasflung+condobst+sasadultasprev)
 
I get the following error message:
 
Error in sum(y) : invalid 'type' (character) of argument
 
What does this error message mean?  All of my variables are in numeric format.  
Thank you for your input.
 
Alison Van Dyke
Wayne State University
 

______________________________________________
R-help@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.

Reply via email to