~ubuntu-branches/ubuntu/trusty/r-cran-rms/trusty-proposed

« back to all changes in this revision

Viewing changes to man/nomogram.Rd

  • Committer: Package Import Robot
  • Author(s): Dirk Eddelbuettel
  • Date: 2014-01-22 14:16:13 UTC
  • mfrom: (1.1.9)
  • Revision ID: package-import@ubuntu.com-20140122141613-frc51dglkjfisik0
Tags: 4.1-1-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
\method{print}{nomogram}(x, dec=0, \dots)
56
56
 
57
57
\method{plot}{nomogram}(x, lplabel="Linear Predictor", fun.side,
58
 
 col.conf=c(1,if(under.unix).3 else 12),
 
58
 col.conf=c(1, 0.3),
59
59
 conf.space=c(.08,.2), label.every=1, force.label=FALSE, 
60
60
 xfrac=.35, cex.axis=.85, cex.var=1, col.grid=NULL,
61
61
 varname.label=TRUE, varname.label.sep="=", ia.space=.7, 
443
443
d.time <- pmin(d.time, cens)
444
444
 
445
445
 
446
 
f <- psm(Srv(d.time,death) ~ sex*age, dist='lognormal')
 
446
f <- psm(Surv(d.time,death) ~ sex*age, dist='lognormal')
447
447
med  <- Quantile(f)
448
448
surv <- Survival(f)  # This would also work if f was from cph
449
449
plot(nomogram(f, fun=function(x) med(lp=x), funlabel="Median Survival Time"))