powered by
Extract the model matrix ("X" matrix) from an Rdistance model object.
# S3 method for dfunc model.matrix(object, ...)
A matrix containing covariates for fitting an Rdistance model.
An Rdistance model frame or fitted distance function, normally produced by a call to dfuncEstim.
dfuncEstim
Ignored
data(sparrowDf) sparrowModel <- parseModel( sparrowDf, dist ~ observer ) model.matrix(sparrowModel)
Run the code above in your browser using DataLab