Description Usage Arguments Value References
Function to check for common errors in the input.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | common_error_messages(
n,
m,
p,
qvs,
q,
x,
delta,
ww,
zz,
run.NPMLEs,
run.NPNA,
run.NPNA_avg,
run.NPNA_wrong,
run.OLS,
run.WLS,
run.EFF,
run.EMPAVA,
tval,
tval0,
z.use,
w.use,
update.qs,
know.true.groups,
true.group.identifier,
run.prediction.accuracy
)
|
n |
sample size, must be at least 1. |
m |
number of different mixture proportions, must be at least 2. |
p |
number of populations, must be at least 2. |
qvs |
a numeric matrix of size |
q |
a numeric matrix of size |
x |
a numeric vector of length |
delta |
a numeric vector of length |
ww |
a numeric vector of length |
zz |
a numeric vector of length |
run.NPMLEs |
a logical indicator. If TRUE, then the output includes the estimated distribution function for mixture data based on the type-I and type II nonparametric maximum likelihood estimators. The type I nonparametric maximum likelihood estimator is referred to as the "Kaplan-Meier" estimator in Garcia and Parast (2020). Neither the type I nor type II adjust for covariates. |
run.NPNA |
a logical indicator. If TRUE, then the output includes the estimated distribution function for mixture data that accounts for covariates and dynamic landmarking. This estimator is called "NPNA" in Garcia and Parast (2020). |
run.NPNA_avg |
a logical indicator. If TRUE, then the output includes the estimated distribution function for mixture data that averages out over the observed covariates. This is referred to as NPNA_marg in Garcia and Parast (2020). |
run.NPNA_wrong |
a logical indicator. If TRUE, then the output includes the estimated distribution function for mixture data that adjusts for covariates, but ignores landmarking. This is referred to as NPNA_t_0=0 in Garcia and Parast (2020). |
run.OLS |
a logical indicator. If TRUE, then the output includes the estimated distribution function computed using an ordinary least squares influence function. The estimator adjusts for censoring using inverse probability weighting (IPW), augmented inverse probability weighting (AIPW), and imputation (IMP). See details in Wang et al (2012). These estimators do not adjust for covariates. |
run.WLS |
a logical indicator. If TRUE, then the output includes the estimated distribution function computed using a weighted least squares influence function. The estimator adjusts for censoring using inverse probability weighting (IPW), augmented inverse probability weighting (AIPW), and imputation (IMP). See details in Wang et al (2012). These estimators do not adjust for covariates. |
run.EFF |
a logical indicator. If TRUE, then the output includes the estimated distribution function computed using the efficient influence function based on Hilbert space projection theory results. The estimator adjusts for censoring using inverse probability weighting (IPW), augmented inverse probability weighting (AIPW), and imputation (IMP). See details in Wang et al (2012). These estimators do not adjust for covariates. |
run.EMPAVA |
logical indicator. If TRUE, we compute the distribution function for the mixture data based on an expectation-maximization (EM) algorithm that uses the pool adjacent violators algorithm (PAVA) from isotone regression to yield a non-negative and monotone estimator. This estimator does not adjust for covariates. See details in Qing et al (2014). |
tval |
numeric vector of time points at which the distribution function is evaluated, all values must be non-negative. |
tval0 |
numeric vector of time points representing the landmark times. All values must be non-negative
and smaller than the maximum of |
z.use |
numeric vector at which to evaluate the discrete covariate Z at in the estimated distribution function.
The values of |
w.use |
numeric vector at which to evaluate the continuous covariate W at in the estimated distribution function.
The values of |
update.qs |
logical indicator. If TRUE, the mixture proportions |
know.true.groups |
logical indicator. If TRUE, then we know the population identifier for each person in the sample. This option is only used for simulation studies. Default is FALSE. |
true.group.identifier |
numeric vector of length |
run.prediction.accuracy |
logical indicator. If TRUE, then we compute the prediction accuracy measures, including the
area under the receiver operating characteristic curve (AUC) and the Brier Score (BS). Prediction accuracy is only valid
in simulation studies where |
Error or warning messages when input is not appropriate for the methods.
Garcia, T.P. and Parast, L. (2020). Dynamic landmark prediction for mixture data. Biostatistics, doi:10.1093/biostatistics/kxz052.
Garcia, T.P., Marder, K. and Wang, Y. (2017). Statistical modeling of Huntington disease onset. In Handbook of Clinical Neurology, vol 144, 3rd Series, editors Andrew Feigin and Karen E. Anderson.
Qing, J., Garcia, T.P., Ma, Y., Tang, M.X., Marder, K., and Wang, Y. (2014). Combining isotonic regression and EM algorithm to predict genetic risk under monotonicity constraint. Annals of Applied Statistics, 8(2), 1182-1208.
Wang, Y., Garcia, T.P., and Ma. Y. (2012). Nonparametric estimation for censored mixture data with application to the Cooperative Huntington's Observational Research Trial. Journal of the American Statistical Association, 107, 1324-1338.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.