lr_test {evinf} | R Documentation |
Likelihood ratio test for individual variables of evzinb
Description
Likelihood ratio test for individual variables of evzinb
Usage
lr_test(
object,
vars,
single = TRUE,
bootstrap = FALSE,
multicore = FALSE,
ncores = NULL,
verbose = FALSE
)
Arguments
object |
EVZINB or EVZINB object to perform likelihood ratio test on |
vars |
Either a list of character vectors with variable names which to be restricted in the LR test or a character vector of variable names. If a list, each character vector of the list will be run separately, allowing for multiple variables to be restricted as once. If a character vector, parameter 'single' can be used to determine whether all variables in the vector should be restricted at once (single = FALSE) or if the variables should be restricted one by one (single = TRUE) |
single |
Logical. Determining whether variables in 'vars' should be restricted individually (single = TRUE) or all at once (single = FALSE) |
bootstrap |
Should LR tests be conducted on each bootstrapped sample or only on the original sample. |
multicore |
Logical. Should the function be run in parallel? |
ncores |
Number of cores to use if multicore = TRUE |
verbose |
Logical. Should the function be verbose? |
Value
A tibble with one row per performed LR test
Examples
data(genevzinb2)
model <- evzinb(y~x1+x2+x3,data=genevzinb2, n_bootstraps = 10)
lr_test(model,'x1')