Reconstruct the model matrix for a cox model.
1 2 3
the result of a
optional, a data frame from which to obtain the data
optional, a contrasts object describing how factors should be coded
other possible argument to
When there is a
data argument this function differs from most
of the other
model.matrix methods in that the response variable
for the original formula is not required to be in the data.
If the data frame contains a
terms attribute then it is
assumed to be the result of a call to
a call to
model.frame is applied with the data as an argument.
The model matrix for the fit
1 2 3 4 5 6
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.