View source: R/comparative_function.R
comparative_model | R Documentation |
This function allows the construction of a table and/or graph with the statistical parameters to choose the model from the analysis functions.
comparative_model(models, names_model = NA, plot = FALSE, round.label = 2)
models |
List with objects of type analysis |
names_model |
Names of the models |
plot |
Plot in the parameters |
round.label |
Round label plot |
Returns a table and/or graph with the statistical parameters for choosing the model.
Gabriel Danilo Shimizu
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.