mspe_LOGISTIC_HealthData_BOOT {SumcaVer1} | R Documentation |
MSPE estimation in mixed logistic model (Health Insurance data) using bootstrap method. Calculate the mspe of mixed logistic model (Health Insurance data) using bootstrap method.
Description
MSPE estimation in mixed logistic model (Health Insurance data) using bootstrap method. Calculate the mspe of mixed logistic model (Health Insurance data) using bootstrap method.
Usage
mspe_LOGISTIC_HealthData_BOOT(
m,
p,
n.new,
y.new,
cum.n.new,
Xi,
yi.tem,
X.tem,
county.tem,
B
)
Arguments
m |
number of domains |
p |
number of complete model parameters |
n.new |
sample size of each domain |
y.new |
response variable |
cum.n.new |
Cummulaticve sum of n |
Xi |
covariates |
yi.tem |
response variable for each individual |
X.tem |
Individual level covariates |
county.tem |
county |
B |
number of bootstrap iterations |
Value
Par: return estimation of model parameters
Mu.hat: return prediction of domain parameters
mspe.boot: return mspe of small area (domain) predictor using the bootstrap method
sq.mspe.boot: return square root of mspe of small area predictor for non-zero domains using the bootstrap method
Examples
mspe_LOGISTIC_HealthData_BOOT(20,3,c(2,1,2,2,1,2,3,1,1,3,1,3,2,3,3,
1,2,1,3,3),c(3,4,2,2,3,3,4,3,4,1,4,1,3,5,4,7,1,3,1,2),c(2,3,5,7,8,10,13,14,15
,18,19,22,24,27,30,31,33,34,37,40),
matrix(runif(60,0,1),nrow=20,byrow=TRUE),sample(c(0,1),replace=TRUE,40),
matrix(c(runif(40,7,10),runif(40,14,22),runif(40,2,4)),nrow=40,byrow=FALSE),
rep(1:20,each=2),10)
[Package SumcaVer1 version 0.1.0 Index]