View source: R/model.matrix.dfunc.R
model.matrix.dfunc | R Documentation |
Extract the model matrix ("X" matrix) from an Rdistance model object.
## S3 method for class 'dfunc'
model.matrix(object, ...)
object |
An Rdistance model frame or fitted distance function,
normally produced by a call to |
... |
Ignored |
A matrix containing covariates for fitting an Rdistance model.
data(sparrowDf)
sparrowModel <- parseModel( sparrowDf, dist ~ observer )
model.matrix(sparrowModel)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.