/dports/math/R-cran-survey/survey/man/ |
H A D | surveysummary.Rd | 3 \alias{svymean.survey.design} 9 \alias{svytotal.survey.design} 10 \alias{svytotal.survey.design2} 11 \alias{svytotal.svyrep.design} 13 \alias{svyvar.survey.design} 36 \method{svymean}{survey.design}(x, design, na.rm=FALSE,deff=FALSE,influence=FALSE,...) 41 \method{svyvar}{survey.design}(x, design, na.rm=FALSE,...) 44 \method{svytotal}{survey.design}(x, design, na.rm=FALSE,deff=FALSE,influence=FALSE,...) 45 \method{svytotal}{survey.design2}(x, design, na.rm=FALSE,deff=FALSE,influence=FALSE,...) 47 \method{svytotal}{svyrep.design}(x, design, na.rm=FALSE, rho=NULL, [all …]
|
H A D | as.svrepdesign.Rd | 7 \title{Convert a survey design to use replicate weights} 9 Creates a replicate-weights survey design object from a traditional 10 strata/cluster survey design object. \code{JK1} and \code{JKn} are 24 mse=getOption("survey.replicates.mse")) 28 mse=getOption("survey.replicates.mse")) 32 \item{design}{Object of class \code{survey.design} or \code{svyimputationList}} 100 svytotal(~enroll, dclus1) 103 svytotal(~enroll, rclus1) 106 svytotal(~enroll, bclus1) 110 svytotal(~api00+stype, dclus2) [all …]
|
H A D | calibrate.Rd | 2 \alias{calibrate.survey.design2} 3 \alias{calibrate.svyrep.design} 6 %\alias{regcalibrate.survey.design2} 7 %\alias{regcalibrate.svyrep.design} 18 survey design and adds additional information that is used by 22 calibrate(design,...) 23 \method{calibrate}{survey.design2}(design, formula, population, 28 \method{calibrate}{svyrep.design}(design, formula, population,compress=NA, 41 \item{design}{Survey design object} 182 A survey design object. [all …]
|
H A D | postStratify.Rd | 4 \alias{postStratify.svyrep.design} 5 \alias{postStratify.survey.design} 7 \title{Post-stratify a survey } 16 \method{postStratify}{svyrep.design}(design, strata, population, partial = FALSE, compress=NULL,...) 17 \method{postStratify}{survey.design}(design, strata, population, partial = FALSE, ...) 21 \item{design}{A survey design with replicate weights} 63 A new survey design object. 85 svytotal(~enroll, rclus1) 95 svytotal(~enroll, rclus1p) 102 svytotal(~enroll, dclus1p) [all …]
|
H A D | rake.Rd | 4 \title{Raking of replicate weight design} 7 distributions of a survey sample to known population margins. 10 rake(design, sample.margins, population.margins, control = list(maxit = 15 \item{design}{A survey object } 43 A raked survey design. 57 svytotal(~enroll, rclus1) 66 svytotal(~enroll, rclus1r) 78 ## Do it for a design without replicate weights 82 svytotal(~enroll, dclus1r) 98 svytotal(~enroll, rclus1ps) [all …]
|
H A D | svychisq.Rd | 5 \alias{svytable.survey.design} 7 \alias{svychisq.survey.design} 14 \alias{degf.survey.design2} 17 \title{Contingency tables for survey data} 22 \method{svytable}{survey.design}(formula, design, Ntotal = NULL, round = FALSE,...) 24 \method{svychisq}{survey.design}(formula, design, 31 \method{degf}{survey.design2}(design, ...) 37 \item{design}{survey object} 54 to use \code{\link{svytotal}} or \code{\link{svymean}}, which also 106 \code{\link{svytotal}} and \code{\link{svymean}}. The exception is that [all …]
|
H A D | svyby.Rd | 10 \alias{svyby.survey.design2} 14 Compute survey statistics on subsets of a survey defined by factors. 22 multicore=getOption("survey.multicore")) 23 \method{svyby}{survey.design2}(formula, by, design, FUN, ..., deff=FALSE,keep.var = TRUE, 26 na.rm.by=FALSE, na.rm.all=FALSE, multicore=getOption("survey.multicore")) 42 \item{FUN}{A function taking a formula and survey design object as its 119 \code{\link{update.survey.design}} to add variables to the design 151 svyby(~enroll,~stype, rclus1,svytotal, deff=TRUE) 163 tots<-svyby(~enroll, ~stype, dclus1, svytotal,covmat=TRUE) 176 (a<-svyby(~enroll, ~stype, rclus1, svytotal, deff=TRUE, verbose=TRUE, [all …]
|
/dports/math/R-cran-survey/survey/ |
H A D | NAMESPACE | 21 S3method(svyloglin,survey.design) 84 S3method(svytotal, survey.design) 85 S3method(svytotal, svyrep.design) 86 S3method(svytotal, survey.design2) 87 S3method(svytotal, twophase) 88 S3method(svytotal, twophase2) 89 S3method(svytotal, pps) 90 S3method(svytotal, DBIsvydesign) 124 S3method(svyglm,survey.design) 313 S3method(dim,survey.design) [all …]
|
/dports/math/R-cran-survey/survey/tests/ |
H A D | toy_example_for_postStratify.R | 1 library(survey) 26 design = toy_design, 27 FUN = survey::svytotal)) 34 adjusted <- postStratify(design = subset(toy_design, responded), 41 design = adjusted, 42 FUN = survey::svytotal)
|
H A D | bycovmat.R | 2 library(survey) 8 a<-svyby(~api00+api99, ~comp.imp+sch.wide,design=rclus1,svymean, 10 b<-svyby(~api00+api99, ~comp.imp+sch.wide,design=rclus1,svymean, 21 all <- svytotal(~ell+mobility+meals, dclus1) 32 all <- svytotal(~ell+mobility+meals, rclus1, return.replicates=TRUE) 39 stopifnot(all(abs(survey:::svrVar(con$replicates, rclus1$scale,rclus1$rscales,mse=rclus1$mse, coef=… 45 a<-svyby(~api00+api99, ~comp.imp+sch.wide,design=rclus1,svymean, 47 b<-svyby(~api00+api99, ~comp.imp+sch.wide,design=rclus1,svymean, 58 all <- svytotal(~ell+mobility+meals, dclus1) 69 all <- svytotal(~ell+mobility+meals, rclus1, return.replicates=TRUE) [all …]
|
H A D | svyby_se.R | 1 library(survey) 5 a<-svyby(~enroll,~stype,design=dstrat,svytotal,vartype=c("ci","se")) 6 b<-svyby(~enroll,~stype,design=dstrat,svytotal,vartype=c("se","ci"))
|
H A D | pps.R | 1 library(survey) 6 svytotal(~Bush+Kerry+Nader, dpps) 7 svytotal(~Bush+Kerry+Nader, dppswr) 17 all.equal(svytotal(~sch.wide,dclus2), svytotal(~sch.wide,dclus2pps)) 19 all.equal(svytotal(~enroll,dclus2), svytotal(~enroll,dclus2pps)) 33 svytotal(~Bush+Kerry+Nader, dpps_ht) 34 svytotal(~Bush+Kerry+Nader, dpps_yg) 35 svytotal(~Bush+Kerry+Nader, dpps_hr) 38 svytotal(~Bush+Kerry+Nader, dpps_br) 39 svytotal(~Bush+Kerry+Nader, dpps_ov) [all …]
|
H A D | caleg.R | 7 library(survey) 28 round(svyby(~api99, ~dnum, design=dclus2, svymean),4) 30 round(svyby(~api99, ~dnum, design=dclus2g, svymean),4) 39 svytotal(~enroll,dclus1g) 40 svytotal(~api.stu,dclus1g) 53 svytotal(~api.stu,dstrat) 58 svytotal(~api.stu, dstratg) 74 summary(svyglm(y~z+x,design=dps,family=quasibinomial)) 108 svytotal(~enroll, dclus1g) 113 svytotal(~enroll, dclus1g) [all …]
|
/dports/math/R-cran-survey/survey/tests/testoutput/ |
H A D | bycovmat.R | 2 library(survey) 8 a<-svyby(~api00+api99, ~comp.imp+sch.wide,design=rclus1,svymean, 10 b<-svyby(~api00+api99, ~comp.imp+sch.wide,design=rclus1,svymean, 21 all <- svytotal(~ell+mobility+meals, dclus1) 32 all <- svytotal(~ell+mobility+meals, rclus1, return.replicates=TRUE) 39 stopifnot(all(abs(survey:::svrVar(con$replicates, rclus1$scale,rclus1$rscales,mse=rclus1$mse, coef=… 45 a<-svyby(~api00+api99, ~comp.imp+sch.wide,design=rclus1,svymean, 47 b<-svyby(~api00+api99, ~comp.imp+sch.wide,design=rclus1,svymean, 58 all <- svytotal(~ell+mobility+meals, dclus1) 69 all <- svytotal(~ell+mobility+meals, rclus1, return.replicates=TRUE) [all …]
|
H A D | bycovmat.Rout.save | 19 > library(survey) 21 Attaching package: 'survey' 28 > options(survey.replicates.mse=TRUE) 32 > a<-svyby(~api00+api99, ~comp.imp+sch.wide,design=rclus1,svymean, 34 > b<-svyby(~api00+api99, ~comp.imp+sch.wide,design=rclus1,svymean, 45 > all <- svytotal(~ell+mobility+meals, dclus1) 56 > all <- svytotal(~ell+mobility+meals, rclus1, return.replicates=TRUE) 65 > options(survey.replicates.mse=FALSE) 69 > a<-svyby(~api00+api99, ~comp.imp+sch.wide,design=rclus1,svymean, 71 > b<-svyby(~api00+api99, ~comp.imp+sch.wide,design=rclus1,svymean, [all …]
|
H A D | api.Rout.saved | 18 > library(survey) 20 Attaching package: 'survey' 26 > options(survey.replicates.mse=TRUE) 29 api> library(survey) 52 design.PSU 100 50 50 78 1 - level Cluster Sampling design 106 2 - level Cluster Sampling design 188 1 - level Cluster Sampling design 232 > options(survey.replicates.mse=FALSE) 235 api> library(survey) [all …]
|
H A D | pps.R | 1 library(survey) 6 svytotal(~Bush+Kerry+Nader, dpps) 7 svytotal(~Bush+Kerry+Nader, dppswr) 17 all.equal(svytotal(~sch.wide,dclus2), svytotal(~sch.wide,dclus2pps)) 19 all.equal(svytotal(~enroll,dclus2), svytotal(~enroll,dclus2pps)) 33 svytotal(~Bush+Kerry+Nader, dpps_ht) 34 svytotal(~Bush+Kerry+Nader, dpps_yg) 35 svytotal(~Bush+Kerry+Nader, dpps_hr) 38 svytotal(~Bush+Kerry+Nader, dpps_br) 39 svytotal(~Bush+Kerry+Nader, dpps_ov) [all …]
|
H A D | pps.Rout.save | 18 > library(survey) 20 Attaching package: 'survey' 30 > svytotal(~Bush+Kerry+Nader, dpps) 35 > svytotal(~Bush+Kerry+Nader, dppswr) 53 > all.equal(svytotal(~sch.wide,dclus2), svytotal(~sch.wide,dclus2pps)) 57 > all.equal(svytotal(~enroll,dclus2), svytotal(~enroll,dclus2pps)) 72 > svytotal(~Bush+Kerry+Nader, dpps_ht) 77 > svytotal(~Bush+Kerry+Nader, dpps_yg) 82 > svytotal(~Bush+Kerry+Nader, dpps_hr) 97 > svytotal(~Bush+Kerry+Nader, dpps_br) [all …]
|
H A D | caleg.R | 7 library(survey) 28 round(svyby(~api99, ~dnum, design=dclus2, svymean),4) 30 round(svyby(~api99, ~dnum, design=dclus2g, svymean),4) 39 svytotal(~enroll,dclus1g) 40 svytotal(~api.stu,dclus1g) 53 svytotal(~api.stu,dstrat) 58 svytotal(~api.stu, dstratg) 74 summary(svyglm(y~z+x,design=dps,family=quasibinomial)) 108 svytotal(~enroll, dclus1g) 113 svytotal(~enroll, dclus1g) [all …]
|
H A D | caleg.Rout.save | 24 > library(survey) 29 Attaching package: 'survey' 59 > round(svyby(~api99, ~dnum, design=dclus2, svymean),4) 91 > round(svyby(~api99, ~dnum, design=dclus2g, svymean),4) 130 > svytotal(~enroll,dclus1g) 133 > svytotal(~api.stu,dclus1g) 151 > svytotal(~api.stu,dstrat) 166 > svytotal(~api.stu, dstratg) 183 > ## missing data in calibrated design 185 > summary(svyglm(y~z+x,design=dps,family=quasibinomial)) [all …]
|
/dports/math/R-cran-survey/survey/vignettes/ |
H A D | survey.Rnw | 3 %\VignetteIndexEntry{A survey analysis example} 6 \title{A survey analysis example} 27 library(survey) 42 design object containing the data. 46 svytotal(~stype, dclus1) 47 svytotal(~enroll, dclus1) 56 svyratio(~api.stu, ~enroll, design=subset(dclus1, stype=="H")) 74 svyby(~ell+meals, ~stype, design=dclus1, svymean) 80 regmodel <- svyglm(api00~ell+meals,design=dclus1) 94 svytotal(~stype, gclus1) [all …]
|
H A D | pps.Rnw | 15 …survey package has always supported PPS (ie, arbitrary unequal probability) sampling with replacem… 58 library(survey) 64 Some possible survey design specifications for these data are: 92 svytotal(~Bush+Kerry+Nader, dpps_ht) 93 svytotal(~Bush+Kerry+Nader, dpps_yg) 94 svytotal(~Bush+Kerry+Nader, dpps_hr) 95 svytotal(~Bush+Kerry+Nader, dpps_hryg) 96 svytotal(~Bush+Kerry+Nader, dpps_hr1) 97 svytotal(~Bush+Kerry+Nader, dpps_br) 98 svytotal(~Bush+Kerry+Nader, dpps_ov) [all …]
|
/dports/math/R-cran-survey/survey/inst/doc/ |
H A D | survey.Rnw | 3 %\VignetteIndexEntry{A survey analysis example} 6 \title{A survey analysis example} 27 library(survey) 42 design object containing the data. 46 svytotal(~stype, dclus1) 47 svytotal(~enroll, dclus1) 56 svyratio(~api.stu, ~enroll, design=subset(dclus1, stype=="H")) 74 svyby(~ell+meals, ~stype, design=dclus1, svymean) 80 regmodel <- svyglm(api00~ell+meals,design=dclus1) 94 svytotal(~stype, gclus1) [all …]
|
H A D | survey.R | 6 library(survey) 22 svytotal(~stype, dclus1) 23 svytotal(~enroll, dclus1) 30 svyratio(~api.stu, ~enroll, design=subset(dclus1, stype=="H")) 43 svyby(~ell+meals, ~stype, design=dclus1, svymean) 49 regmodel <- svyglm(api00~ell+meals,design=dclus1) 50 logitmodel <- svyglm(I(sch.wide=="Yes")~ell+meals, design=dclus1, family=quasibinomial()) 66 svytotal(~stype, gclus1) 67 svytotal(~enroll, gclus1)
|
H A D | pps.Rnw | 15 …survey package has always supported PPS (ie, arbitrary unequal probability) sampling with replacem… 58 library(survey) 64 Some possible survey design specifications for these data are: 92 svytotal(~Bush+Kerry+Nader, dpps_ht) 93 svytotal(~Bush+Kerry+Nader, dpps_yg) 94 svytotal(~Bush+Kerry+Nader, dpps_hr) 95 svytotal(~Bush+Kerry+Nader, dpps_hryg) 96 svytotal(~Bush+Kerry+Nader, dpps_hr1) 97 svytotal(~Bush+Kerry+Nader, dpps_br) 98 svytotal(~Bush+Kerry+Nader, dpps_ov) [all …]
|