It's correct. You need to spend some time with an R tutorial -- there are many on the web -- and learn about how R handles factors in modeling.
?factor Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Fri, Sep 11, 2015 at 7:45 AM, Lida Zeighami <lid.z...@gmail.com> wrote: > Hi dear experts, > I have a general question in R, about the categorical variable such as > Gender(Male or Female) > If I have this column in my data and wanted to do regression model or feed > the data to seqmeta packages (singlesnp, skat meta) , would you please let > me know should I code them first ( male=0 and female=1) or R programming do > it for me? > Because when I didn't code them, R still can do the analysis without any > error but I'm not sure it's correct or not? > Thanks > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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. ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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.