profile_out | R Documentation |
For a given vector theta
to parameterize P(Y|X,C), this function repeats the EM algorithm to find
the values of gamma
and p
at convergence. The resulting parameters are used to find the profile
log-likelihood for theta
by plugging them into the observed-data log-likelihood.
This function is used by pl_theta()
.
profile_out(
theta,
n,
N,
Y_unval = NULL,
Y_val = NULL,
X_unval = NULL,
X_val = NULL,
C = NULL,
Bspline = NULL,
comp_dat_all,
theta_pred,
gamma_pred,
gamma0,
p0,
p_val_num,
TOL,
MAX_ITER
)
theta |
Parameters for the analysis model (a column vector) |
n |
Phase II sample size |
N |
Phase I sample size |
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. |
Bspline |
Vector of column names containing the B-spline basis functions. |
comp_dat_all |
Augmented dataset containing rows for each combination of unvalidated subjects' data with values from Phase II (a matrix) |
theta_pred |
Vector of columns in |
gamma_pred |
Vector of columns in |
gamma0 |
Starting values for |
p0 |
Starting values for |
p_val_num |
Contributions of validated subjects to the numerator for |
TOL |
Tolerance between iterations in the EM algorithm used to define convergence. |
MAX_ITER |
Maximum number of iterations allowed in the EM algorithm. |
Validated |
Column name with the validation indicator. The validation indicator can be defined as |
Profile likelihood for theta
: the value of the observed-data log-likelihood after profiling out other parameters.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.