phi_lambda_hat: phi_lambda_hat

View source: R/zimfrv.R

phi_lambda_hatR Documentation

phi_lambda_hat

Description

Estimation of phi_hat and lambda_hat for ZIP model

This function gives the estimation of 2 parameters phi and lambda for each subject under the null hypothesis.

Usage

phi_lambda_hat(simud)

Arguments

simud

a data frame containing a phenotype named y and covariates

Details

This function first fits zero‐inflated Poisson regression of phenotype y on the covariates only to obtain the estimates of regression coefficients and then compute the estimations of phi and lambda.

Value

a list of 2 estimations of parameters for each subject

See Also

zeroinfl


ZIM4rv documentation built on April 3, 2025, 7:39 p.m.