Displaying 1 result from an estimated 1 matches for "workingdat".
Did you mean:
workingdata
2003 Dec 14
3
Problem with data conversion
...mma1 <- as.numeric(mma)
but I was not successful in converting mma from a character variable to a
numeric variable.
So, to edit and "clean" the data, I exported the dataset as a text file to
Epi Info 2002 (version 2, Windows). I used the following code:
mysubset <- subset(workingdat, select = c(age,sex,status, mma, dma))
write.table(mysubset, file="mysubset.txt", sep="\t", col.names=NA)
After I made changes in the variables using Epi Info (I created a new
variable called "statusrec" containing values "case" and "control"), I...