Rewrite of the package. Most functions from 0.1.0 still exist under the same names, but their arguments and return values have changed, so code written for 0.1.0 needs to be updated.
visit_covs, long_covs,
obs_fixed_covs, obs_random_covs,
outcome_random_covs and censor_col, instead of
formulas such as fixed = Y ~ 1 or
formula = ....cimehr_fit object with the same print(),
summary(), coef(), vcov(),
confint(), predict() and plot()
methods, so results from different methods can be compared
directly.fit_method(method, data, ...) fits any method by its key;
cimehr_methods() and
available_comparison_methods() list the keys, and
method_comparisons() fits several methods to the same
data.CIMEHR_HL(): CIMEHR with a higher-order Laplace
correction.CIMEHR_spline() and CIMEHR_spline_HL():
CIMEHR with a B-spline baseline mean curve.LMM(), Liang(), IIRR() and
IIRR_balancing(): short names for
Linear_mixed_model(),
Joint_modeling_visiting_and_longitudinal_Liang(),
Inverse_intensity_rate_ratio_weighting() and
Inverse_intensity_rate_ratio_balancing() (the long names
still work).Lin_Ying() and JMVL_G(): two further
comparison methods.fit_method() and cimehr_methods(): common
interface and method list.meanfit(), baseline_mean() and
population_trajectory(): fitted mean curves, with
analytical or participant-bootstrap pointwise confidence intervals and
print(), summary(), plot() and
as.data.frame() methods.coef_stage(): coefficients for one stage (visiting,
recording or outcome).process argument or by method key.oa_lmm, va_lmm).Multiple_imputation_IP()) and
linear increments (Linear_increment_IP()) can now be
combined with LMM, Liang or IIRR.vcov(fit, all = TRUE) and confint() give
stacked inference across all three CIMEHR stages.inst/COPYRIGHTS), replacing the
‘pbivnorm’ dependency.cimehr_example (1,000 simulated
participants), replacing sim_ehr_data. The script that
generates it is installed as
system.file("examples", "simulate_example.R", package = "CIMEHR").vignette("cimehr-workflow") walking
through a full analysis.CIMEHR_timevarying_ou() and
CIMEHR_timevarying_integral().bootstrap(): participant-bootstrap intervals for mean
curves are now available through
meanfit(..., bootstrap = TRUE).sim_data_gen() and the sim_ehr_data
dataset (see cimehr_example).Linear_increment() and
Multiple_imputation() (use
Linear_increment_IP() and
Multiple_imputation_IP()).NAMESPACE and help pages are written by hand (not
generated by ‘roxygen2’), and a Collate field in
DESCRIPTION sets the order in which the R files load.