inst/scripts/stanplot.q

with(stanford, {
sm.survival(Age, Log.time, Status, h = 7)
sm.survival(Age, Log.time, Status, h = 7, p = 0.25,
        add = TRUE, lty = 2)
sm.survival(Age, Log.time, Status, h = 7, p = 0.10,
        add = TRUE, lty = 3)
})

Try the sm package in your browser

Any scripts or data that you put into this service are public.

sm documentation built on May 29, 2024, 2:28 a.m.