R/vietnam.R

#' vietnam data
#'
#' 
#' Vietnam-service data from Stockford and Page (1984).
#'
#'
#' @format This data frame contains the following columns:
#' 
#' \describe{
#' \item{apc:}{APC stratum. character variable with options "Yes," "No," "NotAvail"}
#'  
#'  \item{p2sample:}{indicator variable for phase II sample
#'  
#'  = 1 if in phase II sample
#'  
#' =  0 otherwise}
#'  
#'  \item{vietnam:}{= 1 if service in Vietnam
#'  
#'    = 0 if service not in Vietnam
#'    
#'    = NA if not in phase II sample}
#'  
#'  \item{phase1wt:}{weight for phase I sample}
#'  
#'  \item{phase2wt:}{conditional weight for phase II sample
#'  
#'  = (phase I
#'  sample size in stratum) / (phase II sample size in stratum)
#'  
#'  = NA for observations not in phase 2 sample}
#'  
#'  \item{finalwt:}{final weight for phase II sample
#'  
#'  = phase1wt*phase2wt 
#'  
#' = NA for observations not in phase II sample}
#'  
#'  \item{p1apcsize:}{number of observations in the observation's APC stratum that
#'  are in the phase I sample (\eqn{n_h})}
#'  
#'  \item{p2apcsize:}{number of observations in the observation's APC stratum that
#'  are in the phase II sample (\eqn{m_h})}
#'  }
#'  
#'
#' @docType data
#'
#' @usage data(vietnam)
#'
#'
#'
#' @keywords datasets
#' 
#'@references Stockford, D. D. and W. F. Page (1984). Double sampling and the misclassification of
#' Vietnam service. In Proceedings of the Social Statistics Section, pp. 261–264. Alexandria,
#' VA: \emph{American Statistical Association}.
#'
#' @references Lohr (2021), Sampling: Design and Analysis, 3rd Edition. Boca Raton, FL: CRC Press.
#' 
#'@references Lu and Lohr (2021), R Companion for \emph{Sampling: Design and Analysis, 3rd Edition}, 1st Edition. Boca Raton, FL: CRC Press.
#' 
#'
#' 
#' 
#' 
"vietnam"

Try the SDAResources package in your browser

Any scripts or data that you put into this service are public.

SDAResources documentation built on Oct. 22, 2021, 5:08 p.m.