Displaying 1 result from an estimated 1 matches for "plothr".
2007 Oct 02
1
Design package: plot summary
...nly to factors with 2 or more levels
I have dichotomous, categorical as well as continuous variables in the
model, but I can only plot the dichotomous variable.
I started with the following syntax:
dd <- datadist(x1, x2, x3)
options(datadist='dd')
fit<-cph(S~ x1 +x2 +x3, x=T,y=T)
plothr<- summary(fit)
plot(plothr, log=T)
Because the levels defined by datadist didn't seem to work I tried to
adjust the levels after fitting the model:
dd$limits["Adjust to","x1"] <- 1
dd$limits["Adjust to","x2"] <- 30
fit <- update(fit)
plothr...