Displaying 1 result from an estimated 1 matches for "rsmoking".
Did you mean:
smoking
2010 Jul 03
2
logistic regression - glm() - example in Dalgaard's book ISwR
...ntered in glm()
## by means of 'reconstructed' variables
## variables with names beginning with 'r' are
## 'reconstructed' from data in data.frame d.
## The objective is to reconstruct the original
## data from which the table on Dalgaard's page 229
## has been produced
rsmoking <- c(rep('No',d[1,4]),rep('Yes',d[2,4]),
rep('No',d[3,4]),rep('Yes',d[4,4]),
rep('No',d[5,4]),rep('Yes',d[6,4]),
rep('No',d[7,4]),rep('Yes',d[8,4]))
rsmoking <- factor(rsmoking)
length...