Skip to content

Commit

Permalink
Remove strata means
Browse files Browse the repository at this point in the history
Removed strata means option for now. will reformat and add back at later stage.
  • Loading branch information
smishr authored Dec 5, 2022
1 parent c2dede6 commit 690a424
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/mean.jl
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,3 @@ function mean(x::Symbol, by::Symbol, design::StratifiedSample)
gdf_domain = groupby(design.data, by)
combine(gdf_domain, [x, :popsize,:sampsize,:sampfraction, design.strata] => domain_mean => AsTable)
end

function mean(::Bool; x::Symbol, design::StratifiedSample)
gdf = groupby(design.data, design.strata)
ȳₕ = combine(gdf, x => mean => :mean).mean
s²ₕ = combine(gdf, x => var => :s²h).s²h
return DataFrame(ȳₕ, s²ₕ)
end

0 comments on commit 690a424

Please sign in to comment.