fit_midpoint_model {rwicc} | R Documentation |
Fit model using midpoint imputation
Description
Fit model using midpoint imputation
Usage
fit_midpoint_model(
participant_level_data,
obs_level_data,
maxit = 1000,
tolerance = 1e-08
)
Arguments
participant_level_data |
a data.frame or tibble with the following variables:
|
obs_level_data |
a data.frame or tibble with the following variables:
|
maxit |
maximum iterations, passed to |
tolerance |
convergence criterion, passed to |
Value
a vector of logistic regression coefficient estimates
Examples
sim_data = simulate_interval_censoring(
"theta" = c(0.986, -3.88),
"study_cohort_size" = 4500,
"preconversion_interval_length" = 365,
"hazard_alpha" = 1,
"hazard_beta" = 0.5)
theta_est_midpoint = fit_midpoint_model(
obs_level_data = sim_data$obs_data,
participant_level_data = sim_data$pt_data
)
[Package rwicc version 0.1.3 Index]