From c13b81cc4fd49f2ee1e049f1ebeb35f6d97e6aa5 Mon Sep 17 00:00:00 2001 From: Nadia <76887318+nadiaenh@users.noreply.github.com> Date: Mon, 20 Mar 2023 16:15:23 -0700 Subject: [PATCH 1/2] fixed typo in SurveyDesign docstring Removed stype argument, as apiclus1 is not stratified. --- src/SurveyDesign.jl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/SurveyDesign.jl b/src/SurveyDesign.jl index e0211352..15f8dcfe 100644 --- a/src/SurveyDesign.jl +++ b/src/SurveyDesign.jl @@ -30,11 +30,10 @@ individuals in one cluster are sampled. The clusters are considered disjoint and ```jldoctest julia> apiclus1 = load_data("apiclus1"); -julia> dclus1 = SurveyDesign(apiclus1; clusters=:dnum, strata=:stype, weights=:pw) +julia> dclus1 = SurveyDesign(apiclus1; clusters=:dnum, weights=:pw) SurveyDesign: data: 183×43 DataFrame -strata: stype - [H, E, E … E] +strata: none cluster: dnum [637, 637, 637 … 448] popsize: [507.7049, 507.7049, 507.7049 … 507.7049] From 36437ecbabc6a97c548840e41464b7b68df5c431 Mon Sep 17 00:00:00 2001 From: Nadia <76887318+nadiaenh@users.noreply.github.com> Date: Mon, 20 Mar 2023 17:01:31 -0700 Subject: [PATCH 2/2] fix doctest issue changed df columns to 44 instead of 43 --- src/SurveyDesign.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SurveyDesign.jl b/src/SurveyDesign.jl index 15f8dcfe..295ce50c 100644 --- a/src/SurveyDesign.jl +++ b/src/SurveyDesign.jl @@ -32,7 +32,7 @@ julia> apiclus1 = load_data("apiclus1"); julia> dclus1 = SurveyDesign(apiclus1; clusters=:dnum, weights=:pw) SurveyDesign: -data: 183×43 DataFrame +data: 183×44 DataFrame strata: none cluster: dnum [637, 637, 637 … 448]