Learn R Programming

survPen (version 2.0.1)

rd: Defining random effects in survPen formulae

Description

Used inside a formula object to define a random effect.

Usage

rd(...)

Value

object of class rd.smooth.spec

Arguments

...

Any number of covariates separated by ","

Examples

Run this code
# cubic regression spline of time with 10 unspecified knots + random effect at the cluster level
formula.test <- ~smf(time,df=10) + rd(cluster)


Run the code above in your browser using DataLab