lma_check {lidaRtRee}R Documentation

Checks linear model assumptions of a multiple regression model

Description

The performed tests are:

Usage

lma_check(formule, df, max.pvalue = 0.05, max.vif = 5)

Arguments

formule

formula. model to be evaluated

df

data.frame. data to evaluate the model

max.pvalue

numeric. maximum p-value of variables included in the model

max.vif

numeric. maximum variance inflation factor of variables included in the model

Value

a one line data.frame with 5 columns.

Examples

# load Quatre Montagnes dataset
data(quatre_montagnes)
# fit lm model
model <- lm(G_m2_ha ~ zmax + zq95, data = quatre_montagnes)
lma_check(eval(model$call[[2]]), quatre_montagnes)
# trying with Box-Cox transformation of dependent variable
# and other independent variables
model <- lm(boxcox_tr(G_m2_ha, -0.14) ~ Tree_meanH + Tree_density + zpcum7, data = quatre_montagnes)
lma_check(eval(model$call[[2]]), quatre_montagnes)

[Package lidaRtRee version 4.0.5 Index]