View source: R/mix_modelselect.R
mix_modelselect | R Documentation |
Fit data to linear mixed-effects model with 'species' specified as the random effect,
using the lme4::lmer
function under the hood. The full list of allometric equations that are
considered can be found in ?eqns_info
and data(eqns_info)
.
mix_modelselect( data, species = "species", response = "height", predictor = "diameter" )
data |
Dataframe that contains the variables of interest. Each row is a measurement for an individual tree. |
species |
Column name of the species variable in |
response |
Column name of the response variable.
Defaults to |
predictor |
Column name of the predictor variable.
Defaults to |
A list of 5 elements:
A model selection table of all the types of mixed-effects models considered,
ranked in order of ascending Aikake's Information Criterion corrected for small sample sizes (AICc).
Model details can be found in ?eqns_info
and data(eqns_info)
.
The best-fit model object.
The conditional and marginal pseudo-R^2 of the best-fit model.
Correction factor used to adjust predicted values if response variable is transformed (incorporated into reported parameters).
Warning messages, if any, spit from the models. These usually indicate failure of model convergence.
Other mixed-effects model functions:
mix_predict()
,
mix_simulate()
data(urbantrees) ## Not run: mix_modelselect(data = urbantrees, species = "species", response = "height", predictor = "diameter") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.