comparative_model: Analysis: Comparative models

View source: R/comparative_function.R

comparative_modelR Documentation

Analysis: Comparative models

Description

This function allows the construction of a table and/or graph with the statistical parameters to choose the model from the analysis functions.

Usage

comparative_model(models, names_model = NA, plot = FALSE, round.label = 2)

Arguments

models

List with objects of type analysis

names_model

Names of the models

plot

Plot in the parameters

round.label

Round label plot

Value

Returns a table and/or graph with the statistical parameters for choosing the model.

Author(s)

Gabriel Danilo Shimizu

Examples

library(AgroReg)
data(granada)
attach(granada)
a=LM(time,WL)
b=LL(time,WL)
c=BC(time,WL)
d=weibull(time,WL)
comparative_model(models=list(a,b,c,d),names_model=c("LM","LL","BC","Weibull"))

models <- c("LM1", "LM4", "L3", "BC4","weibull3","mitscherlich", "linear.plateau", "VG")
r <- lapply(models, function(x) {
r <- with(granada, regression(time, WL, model = x))
})
comparative_model(r,plot = TRUE)

AgroReg documentation built on July 2, 2025, 1:08 a.m.