compare_models {evinf} | R Documentation |
Function to compare evzinb or evinb models with zinb and nb models
Description
Function to compare evzinb or evinb models with zinb and nb models
Usage
compare_models(
object,
nb_comparison = TRUE,
zinb_comparison = TRUE,
winsorize = FALSE,
razorize = FALSE,
cutoff_value = 10,
init_theta = NULL,
multicore = FALSE,
ncores = NULL
)
Arguments
object |
A fitted evzinb or evinb model object |
nb_comparison |
Should comparison be made with a negative binomial model? |
zinb_comparison |
Should comparions be made with the zinb model? |
winsorize |
Should winsorizing be done in the comparisons? |
razorize |
Should razorizing (trimming) be done in the comparisons? |
cutoff_value |
Integer: Which observation should be used as a basis for winsorizing/razorising. E.g. 10 means that everything larger than the 10th observation will be winsorized/razorised |
init_theta |
Optional initial value for theta in the NB specification |
multicore |
Logical: should multiple cores be used |
ncores |
Number of cores if multicore is used |
Value
A list with the original model as the first object and compared models as the following objects
Examples
data(genevzinb2)
model <- evzinb(y~x1+x2+x3,data=genevzinb2, n_bootstraps = 10, multicore = TRUE, ncores = 2)
compare_models(model)
[Package evinf version 0.8.10 Index]