groupSizes | R Documentation |
Extract the group size information from an Rdistance model frame.
groupSizes(ml, ...)
ml |
Either a Rdistance 'model frame' or an Rdistance
'fitted object'. Both are of class "dfunc".
Rdistance 'model frames' are lists containing components
necessary to estimate a distance function, but no estimates.
Rdistance 'model frames' are typically
produced by calls to |
... |
Ignored |
A vector containing group sizes contained in the Rdistance model frame or fitted object.
data("sparrowDf")
sparrowModel <- parseModel( sparrowDf, dist ~ observer )
stats::model.offset(sparrowModel$mf)
groupSizes(sparrowModel) # same, but future-proof
sparrowModel <- parseModel( sparrowDf
, dist ~ observer + groupsize(groupsize) )
groupSizes(sparrowModel)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.