maineffect: estimate age main effects and period main effects

View source: R/MainEffect.R

maineffectR Documentation

estimate age main effects and period main effects

Description

estimate age and period main effects from the APCI model

Usage

maineffect(A, P, C, model = temp6, data, gee=FALSE,
...)

Arguments

A, P, C

The numbers of age groups, period groups, and cohort groups separately.

model

A generalized linear regression model generated from the internal function temp_model

data

A data frame containing the outcome variable, age group indicator, period group indicator, and covariates to be used in the model. If the variable(s) are not found in data, there will be an error message reminding the users to check the input data again.

gee

logical, indicating if the data is cross-sectional data or longitudinal/panel data. If TRUE, the generalized estimating equation will be used to correct the standard error estimates. The default is FALSE, indicating that the data are cross-sectional.

...

Jiahui1902/APCI documentation built on Sept. 6, 2024, 3:40 a.m.