Def_modelform_fix {Colossus}R Documentation

Automatically assigns geometric-mixture values

Description

Def_model_control checks and assigns default values

Usage

Def_modelform_fix(control, model_control, modelform, Term_n)

Arguments

control

list of parameters controlling the convergence, see Def_Control() for options or vignette("starting_description")

model_control

controls which alternative model options are used, see Def_model_control() for options and vignette("Alt_Run_opt") for further details

modelform

string specifying the model type: M, ME, A, PA, PAE, GMIX, GMIX-R, GMIX-E

Term_n

term numbers for each element of the model

Value

returns a filled list

See Also

Other Data Cleaning Functions: Check_Dupe_Columns(), Check_Trunc(), Correct_Formula_Order(), Date_Shift(), Def_Control(), Def_Control_Guess(), Def_model_control(), Joint_Multiple_Events(), Replace_Missing(), Time_Since(), factorize(), factorize_par(), gen_time_dep(), interact_them()

Examples

library(data.table)
control <- list("Ncores"=2,'lr' = 0.75,'maxiter' = 5, 'ties'='breslow','double_step'=1)
control <- Def_Control(control)
model_control <- list("single"=TRUE)
model_control <- Def_model_control(model_control)
Term_n <- c(0,1,1)
modelform <- 'a'
val <- Def_modelform_fix(control,model_control,modelform,Term_n)
model_control <- val$model_control
modelform <- val$modelform


[Package Colossus version 1.1.1 Index]