nobs.survreg {plgraphics} | R Documentation |
Methods of nobs
for classes
survreg
and coxph
(since they are lacking presently)
## S3 method for class 'survreg' nobs(object, ...) ## S3 method for class 'coxph' nobs(object, ...)
object |
result of calling |
... |
not used |
scalar: number of non-missing observations
data(ovarian, package="survival") rr <- survival::survreg(survival::Surv(futime, fustat) ~ ecog.ps + rx, ovarian, dist="exponential") nobs(rr)