logreg2ph | R Documentation |
Sieve maximum likelihood estimator (SMLE) for two-phase logistic regression problems This function returns the sieve maximum likelihood estimators (SMLE) for the logistic regression model from Lotspeich et al. (2021)
logreg2ph(
Y_unval = NULL,
Y_val = NULL,
X_unval = NULL,
X_val = NULL,
C = NULL,
Validated = NULL,
Bspline = NULL,
data,
theta_pred = NULL,
gamma_pred = NULL,
initial_lr_params = "Zero",
h_N_scale = 1,
noSE = FALSE,
TOL = 1e-04,
MAX_ITER = 1000
)
Y_unval |
Column names with the unvalidated outcome. If |
Y_val |
Column names with the validated outcome. |
X_unval |
Column name(s) with the unvalidated predictors. If |
X_val |
Column name(s) with the validated predictors. If |
C |
(Optional) Column name(s) with additional error-free covariates. |
Validated |
Column name with the validation indicator. The validation indicator can be defined as |
Bspline |
Vector of column names containing the B-spline basis functions. |
data |
A dataframe with one row per subject containing columns: |
theta_pred |
Vector of columns in |
gamma_pred |
Vector of columns in |
initial_lr_params |
Initial values for parametric model parameters. Choices include (1) |
h_N_scale |
Size of the perturbation used in estimating the standard errors via profile likelihood. If none is supplied, default is |
noSE |
Indicator for whether standard errors are desired. Defaults to |
TOL |
Tolerance between iterations in the EM algorithm used to define convergence. |
MAX_ITER |
Maximum number of iterations allowed in the EM algorithm. |
model_coeff |
dataframe with final model coefficients and standard error estimates (where applicable) for the analysis model. |
outcome_error_coeff |
dataframe with final model coefficients for the outcome error model. |
bspline_coeff |
dataframe with B-spline coefficients for the covariate error model. |
converged |
indicator of EM algorithm convergence for parameter estimates. |
se_converged |
indicator of standard error estimate convergence. |
converged_msg |
(where applicable) description of non-convergence. |
iterations |
number of iterations completed by EM algorithm to find parameter estimates. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.