Description Usage Arguments Details Value References Examples
The main function to solve the estimating equations constructed by combining pair (N2,M1) and (N2,M2). Since there is just one case data, no selection bias needed.
1 | DA_FDN2M1M2(realdata_covariates, realdata_alpha, subset_2, subset_4, p, beta0)
|
realdata_covariates |
a list contains the following data matrics: CASEZ_2, CASEZhat_2, CASEZhat_22, CONTZ_1, CONTZhat_1, CONTZhat_2, CONTZhat_22 |
realdata_alpha |
a list contains the following data matrics: prob_case_22, prob_cont_1, prob_cont_2, pwt_cont_2 |
subset_2 |
A vector of 1:(p-2), which is the subset of \hat{Z}_{21}, i.e. \hat{Z}_{21}^\star in equation (10) of Huang(2014). \hat{Z}_l may be highly correlated with Z_d, so it is removed in the estimation. For the view of including more information, you can use the whole dataset. |
subset_4 |
A vector of 1:(p-2), which is the subset of \hat{Z}_{22}. |
p |
number of parameters. |
beta0 |
an initial parameter for solver "nleqslv". |
The function solves estimating equation based on (N2,M1) and (N2,M2), see Huang(2014).
A list of estimator and its standard deviation.
Huang, H., Ma, X., Waagepetersen, R., Holford, T.R. , Wang, R., Risch, H., Mueller, L. & Guan, Y. (2014). A New Estimation Approach for Combining Epidemiological Data From Multiple Sources, Journal of the American Statistical Association, 109:505, 11-23.
1 2 3 4 5 | #p <- 8
#subset_2 <- 1:p
#subset_4 <- 1:p
#beta0=c(-5.4163,0.7790,-0.1289,0.2773,-0.5510,0.1568,0.4353,-0.6895)
#DA_FDN2M1M2(realdata_covariates,realdata_alpha,subset_2,subset_4,p=p,beta0=beta0)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.