model.matrix - Rdistance model matrix
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 dfuncEstim
....
: IgnoredA matrix containing covariates for fitting an Rdistance model.
data(sparrowDf) sparrowModel <- parseModel( sparrowDf, dist ~ observer ) model.matrix(sparrowModel)
Useful links