
Create new objects
create.Rd
The function creates a ProgressModelList
.
Details
The function uses the first entry of each list element to create
the first ProgressModel
, then the second entry and so on.
Examples
if (FALSE) {
# Create a Region object
library(cronus)
region <- Region(name = "nebraska", type = "us state",
div = c(country = "United States", state = "Nebraska"))
# Class
Class <- "ProgressBM"
# Formula
formula <- list(c(global = "CumPercentage ~ Time + agdd * adayl"),
c(base = "CumPercentage ~ Time + agdd"))
# Link
link <- list("logit", "probit")
# Set the parameters
prm <- combine(Class = Class,
formula = formula,
link = link,
region = list(region),
data = data_progress)
prm$crop <- names(prm$data)
# Create the object
object <- create(prm)
}