nobs.flexsurvreg | R Documentation |
Number of observations contributing to a fitted flexible survival model
## S3 method for class 'flexsurvreg'
nobs(object, cens = TRUE, ...)
object |
Output from |
cens |
Include censored observations in the number. |
... |
Further arguments passed to or from other methods. Currently unused. |
By default, this matches the behaviour of the nobs
method for survreg
objects, including both censored and uncensored observations.
If a weighted flexsurvreg
analysis was done, then this function returns the sum of the weights.
This returns the mod$N
component of the fitted
model object mod
. See flexsurvreg
,
flexsurvspline
for full documentation of all components.
C. H. Jackson chris.jackson@mrc-bsu.cam.ac.uk
flexsurvreg
, flexsurvspline
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.