File: rcspline.plot.r

package info (click to toggle)
hmisc 5.2-4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,044 kB
  • sloc: asm: 28,905; f90: 590; ansic: 415; xml: 160; fortran: 75; makefile: 2
file content (10 lines) | stat: -rw-r--r-- 194 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
library(Hmisc)
require(survival)
data(pbc)

with(pbc, 
     rcspline.plot(age, time, model="cox",event=status %in% 1:2, nk=5, show="xbeta",
              showknots=TRUE, plotcl=TRUE, lty=1)
)