View source: R/lrt_homogeneity_inad.R
| run_homogeneity_tests_inad | R Documentation |
Convenience function to run all three homogeneity tests at once and return a summary.
run_homogeneity_tests_inad(
y,
blocks,
order = 1,
thinning = "binom",
innovation = "pois",
...
)
y |
Integer matrix with n_subjects rows and n_time columns. |
blocks |
Integer vector of length n_subjects specifying group membership. |
order |
Antedependence order (0, 1, or 2). |
thinning |
Thinning operator: "binom", "pois", or "nbinom". |
innovation |
Innovation distribution: "pois", "bell", or "nbinom". |
... |
Additional arguments passed to |
A list with class "homogeneity_tests_inad" containing results
for all three tests and a summary table.
data("bolus_inad")
tests <- run_homogeneity_tests_inad(bolus_inad$y, bolus_inad$blocks,
order = 1, thinning = "nbinom",
innovation = "bell")
print(tests)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.