[R] logistic regression 3D-plot CORRECTION

Frank E Harrell Jr f.harrell at vanderbilt.edu
Thu Feb 3 13:31:21 CET 2005


> library(Design)
> d <- datadist(mydata); options(datadist='d')
> f <- lrm(incidence ~ sun*trees)  # lrm is for binary or ordinal response
> plot(f, sun=NA, trees=NA)
> # add method='image' or 'contour' to get other types of graphs
> plot(f, sun=NA, trees=NA, fun='plogis')  # probability scale

Correction: fun=plogis not 'plogis'.  Sorry about that  -FH




More information about the R-help mailing list