ranef.mexhaz: Method for extracting random effects from a mexhaz object

View source: R/ranef.mexhaz.R

ranef.mexhazR Documentation

Method for extracting random effects from a mexhaz object

Description

Display a data frame containing the cluster-specific random effects with their standard errors.

Usage

## S3 method for class 'mexhaz'
ranef(x, ...)

Arguments

x

an object of class mexhaz.

...

not used.

Value

A data frame with three columns containing the cluster names, the random effect estimates, and their standard errors.

See Also

mexhaz

Examples


data(simdatn1)

## Fit of a mixed-effect excess hazard model, with the baseline hazard
## described by a Weibull distribution (without covariables)

Mod_weib_mix <- mexhaz(formula=Surv(time=timesurv,
event=vstat)~1, data=simdatn1, base="weibull",
expected="popmrate", verbose=0, random="clust")

ranef(Mod_weib_mix)

mexhaz documentation built on Oct. 31, 2022, 5:08 p.m.