DA_FDN2M2: Data Analysis of (N2,M2)

Description Usage Arguments Details Value References Examples

Description

The main function to solve the estimating equations constructed by (N2,M2). Since there is just one case data, no selection bias needed.

Usage

1

Arguments

realdata_covariates

a list contains the following data matrics: CASEZhat_2, CASEZhat_22, CONTZhat_2, CONTZhat_22

realdata_alpha

a list contains the following data matrics: prob_case_22,prob_cont_2, pwt_cont_2

p

number of parameters.

beta0

an initial parameter for solver "nleqslv".

Details

The function solves estimating equation based on (N2,M2), see Huang(2014).

Value

A list of estimator and its standard deviation.

References

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.

Examples

1
2
3
 #p <- 8
 #beta0=c(-5.4163,0.7790,-0.1289,0.2773,-0.5510,0.1568,0.4353,-0.6895)
 #DA_FDN2M2(realdata_covariates,realdata_alpha,p=p,beta0=beta0)

njuwill/SPPcomb documentation built on May 28, 2019, 4:39 p.m.