Learn R Programming

YPBP (version 0.0.1)

model.matrix.ypbp: Model.matrix method for ypbp models

Description

Reconstruct the model matrix (or matrices if the alternative formulation of the YP model is used) for a ypbp model.

Usage

# S3 method for ypbp
model.matrix(object, ...)

Arguments

object

an object of the class ypbp.

...

further arguments passed to or from other methods.

Value

The model matrix (or matrices) for the fit.

Examples

Run this code
# NOT RUN {
fit <- ypbp(Surv(time, status)~arm, data=ipass)
model.matrix(fit)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab