# NOT RUN {
dat<-read.csv("http://tinyurl.com/zq7l775",header = FALSE)
colnames(dat)<-c("Class","Age","Sex","Sterioid","Antivirals",
"Fatigue","Malaise","Anorexia","Liver Big",
"Liver Firm","Spleen Palpable","Spiders",
"Ascites","Varices","Bilirubin","Alk Phosphate",
"Sgot","Albumin","Protime","Histology")
dat<-as.matrix(dat)
dat[which(dat=="?")]=NA
dat<-data.frame(dat)
dat[,c(2,15,16,17,18,19)]<-lapply(X = dat[,c(2,15,16,17,18,19)],as.numeric)
colnames(dat)
fit<-glmFSA(formula="Class~Age+Sgot*Albumin",data=dat,fixvar="Age",quad=FALSE,m=2,
numrs=10,family="binomial",cores=1)
# }
Run the code above in your browser using DataLab