An internal function to select which type of hurdle model to execute for both effectiveness and costs. Alternatives vary depending on the type of distribution assumed for the effect and cost variables, type of structural value mechanism assumed and independence or joint modelling This function selects which type of model to execute.
write_hurdle(
dist_e,
dist_c,
type,
pe_fixed,
pc_fixed,
ze_fixed,
zc_fixed,
ind_fixed,
pe_random,
pc_random,
ze_random,
zc_random,
ind_random,
model_e_random,
model_c_random,
model_se_random,
model_sc_random,
se,
sc
)
Distribution assumed for the effects. Current available chocies are: Normal ('norm'), Beta ('beta'), Gamma ('gamma'), Exponential ('exp'), Weibull ('weibull'), Logistic ('logis'), Poisson ('pois'), Negative Binomial ('nbinom') or Bernoulli ('bern')
Distribution assumed for the costs. Current available chocies are: Normal ('norm'), Gamma ('gamma') or LogNormal ('lnorm')
Type of structural value mechanism assumed. Choices are Structural Completely At Random (SCAR) and Structural At Random (SAR)
Number of fixed effects for the effectiveness model
Number of fixed effects for the cost model
Number of fixed effects or the structural indicators model for the effectiveness
Number of fixed effects or the structural indicators model for the costs
Logical; if TRUE independence at the level of the fixed effects between effectiveness and costs is assumed, else correlation is accounted for
Number of random effects for the effectiveness model
Number of random effects for the cost model
Number of random effects or the structural indicators model for the effectiveness
Number of random effects or the structural indicators model for the costs
Logical; if TRUE independence at the level of the random effects between effectiveness and costs is assumed, else correlation is accounted for
Random effects formula for the effectiveness model
Random effects formula for the costs model
Random effects formula for the structural indicators model for the effectiveness
Random effects formula for the structural indicators model for the costs
Structural value for the effectiveness
Structural value for the costs
#Internal function only
#No examples
#
#
Run the code above in your browser using DataLab