cv14_dispersion_test {CleaningValidation}R Documentation

Dispersion Test for Poisson Regression Models

Description

Performs a dispersion test on a Poisson regression model to check for overdispersion. The function fits a Poisson regression model to the data using the specified columns, and then performs a dispersion test using the model.

Usage

cv14_dispersion_test(data, residue_col, cleaning_event_col)

Arguments

data

A dataframe containing the observed data.

residue_col

A string specifying the response column in the model.

cleaning_event_col

A string specifying the explanatory variable in the model.

Value

A dataframe object with the results of the overdispersion test, including

Author(s)

Chan, Mohamed, Lou, Wendy, Yang, Xiande [xiande.yang at gmail.com] the Z-value, P-value, and dispersion estimate.

Examples

cv14_dispersion_test(data = Eq_Mic, residue_col = "Mic", cleaning_event_col = "CleaningEvent")

[Package CleaningValidation version 1.0 Index]