Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

nobs.flexsurvreg

Number of observations contributing to a fitted flexible survival model


Description

Number of observations contributing to a fitted flexible survival model

Usage

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

Arguments

object

Output from flexsurvreg or flexsurvspline, representing a fitted survival model object.

...

Further arguments passed to or from other methods. Currently unused.

Details

This matches the behaviour of the nobs method for survreg objects, including both censored and uncensored observations.

Value

This returns the mod$N component of the fitted model object mod. See flexsurvreg, flexsurvspline for full documentation of all components.

Author(s)

See Also


flexsurv

Flexible Parametric Survival and Multi-State Models

v2.0
GPL (>= 2)
Authors
Christopher Jackson [aut, cre], Paul Metcalfe [ctb], Jordan Amdahl [ctb], Matthew T. Warkentin [ctb], Kevin Kunzmann [ctb]
Initial release
2021-02-22

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.