Learn R Programming

hyreg2 (version 1.1.0)

summary_hyreg2: model summary for hyreg2 objects

Description

get model parameters of model generated by hyreg2 or hyreg2_het

Usage

summary_hyreg2(object)

Value

summary object of bbmle::mle2() model, Please note that the outputs for sigma and theta are on a log-scale and have to be transformed using exp()to get the correct estimated values.

Arguments

object

modelobject generated with hyreg2() or hyreg2_het()

Author

Svenja Elkenkamp

Examples

Run this code

formula <- y ~  -1 + x1 + x2 + x3 | id
k <- 1
stv <- setNames(c(0.2,0,1,1,1),c(colnames(simulated_data_norm)[3:5],c("sigma","theta")))
control = list(iter.max = 1000, verbose = 4)
rm(counter)
mod <- hyreg2(formula = formula,
                    data =  simulated_data_norm,
                    type =  simulated_data_norm$type,
                    stv = stv,
                    k = k,
                    type_cont = "TTO",
                    type_dich = "DCE_A",
                    opt_method = "L-BFGS-B",
                    control = control,
                    latent = "both",
                    id_col = "id"
)
summary_hyreg2(mod)

Run the code above in your browser using DataLab