2021-07-20
Tutorial of "Zero-Inflated Poisson Models with Measurement Error in Response" by Qihuang Zhang and Grace Y. Yi.
- Step 1: Install the R package
Before implementing the code, R package GeneErrorMis is needed to be installed:
# install devtools if necessary install.packages('devtools') # install the GeneErrorMis package devtools::install_github('QihuangZhang/GeneErrorMis') # load library(GeneErrorMis)- Step 2: Configure the global parameters Modify the following global parameter in "main.R"
seed: the seed of generating simulation data
- Step 3: Implement method in "main.R"
- Main: Main R file in implementating the tutorial exmaple
- Auxiliary Functions: Auxiliary Functions that are needed during the implementation
- Example Resulting Data: An example of the generated results