nobs.survreg {plgraphics}R Documentation

Number of Observations

Description

Methods of nobs for classes survreg and coxph (since they are lacking presently)

Usage

## S3 method for class 'survreg'
nobs(object, ...)
## S3 method for class 'coxph'
nobs(object, ...)

Arguments

object

result of calling survreg or coxph

...

not used

Value

scalar: number of non-missing observations

See Also

nobs

Examples

data(ovarian, package="survival")
rr <- survival::survreg(survival::Surv(futime, fustat) ~ ecog.ps + rx, ovarian,
             dist="exponential")
nobs(rr)


[Package plgraphics version 1.0 Index]