Updated variance( ) function #739
Annotations
6 errors and 2 warnings
src/ratio.jl#L42
doctest failure in ~/work/Survey.jl/Survey.jl/src/ratio.jl:42-50
```jldoctest; setup = :(using Survey, StatsBase; apiclus1 = load_data("apiclus1"); dclus1 = SurveyDesign(apiclus1; clusters = :dnum, weights = :pw); bclus1 = bootweights(dclus1);)
julia> ratio(:api00, :enroll, bclus1)
1×2 DataFrame
Row │ estimator SE
│ Float64 Float64
─────┼─────────────────────
1 │ 1.17182 0.131518
```
Subexpression:
ratio(:api00, :enroll, bclus1)
Evaluated output:
1×2 DataFrame
Row │ estimator SE
│ Float64 Float64
─────┼─────────────────────
1 │ 1.17182 0.131518
Expected output:
diff =
Warning: Diff output requires color.
1×2 DataFrame
Row │ estimator SE
│ Float64 Float64
─────┼─────────────────────
1 │ 1.17182 0.131518
|
src/mean.jl#L47
doctest failure in ~/work/Survey.jl/Survey.jl/src/mean.jl:47-55
```jldoctest; setup = :(using Survey, StatsBase; apiclus1 = load_data("apiclus1"); dclus1 = SurveyDesign(apiclus1; clusters = :dnum, weights = :pw); bclus1 = dclus1 |> bootweights;)
julia> mean(:api00, bclus1)
1×2 DataFrame
Row │ mean SE
│ Float64 Float64
─────┼──────────────────
1 │ 644.169 23.4107
```
Subexpression:
mean(:api00, bclus1)
Evaluated output:
1×2 DataFrame
Row │ mean SE
│ Float64 Float64
─────┼──────────────────
1 │ 644.169 23.4107
Expected output:
diff =
Warning: Diff output requires color.
1×2 DataFrame
Row │ mean SE
│ Float64 Float64
─────┼──────────────────
1 │ 644.169 23.4107
|
src/quantile.jl#L51
doctest failure in ~/work/Survey.jl/Survey.jl/src/quantile.jl:51-59
```jldoctest; setup = :(using Survey, StatsBase; apisrs = load_data("apisrs");srs = SurveyDesign(apisrs; weights=:pw); bsrs = srs |> bootweights;)
julia> quantile(:api00, bsrs, 0.5)
1×2 DataFrame
Row │ 0.5th percentile SE
│ Float64 Float64
─────┼───────────────────────────
1 │ 659.0 14.9764
```
Subexpression:
quantile(:api00, bsrs, 0.5)
Evaluated output:
1×2 DataFrame
Row │ 0.5th percentile SE
│ Float64 Float64
─────┼───────────────────────────
1 │ 659.0 14.9764
Expected output:
diff =
Warning: Diff output requires color.
1×2 DataFrame
Row │ 0.5th percentile SE
│ Float64 Float64
─────┼───────────────────────────
1 │ 659.0 14.9764
|
src/total.jl#L38
doctest failure in ~/work/Survey.jl/Survey.jl/src/total.jl:38-46
```jldoctest; setup = :(apiclus1 = load_data("apiclus1"); dclus1 = SurveyDesign(apiclus1; clusters = :dnum, weights = :pw); bclus1 = dclus1 |> bootweights;)
julia> total(:api00, bclus1)
1×2 DataFrame
Row │ total SE
│ Float64 Float64
─────┼──────────────────────
1 │ 3.98999e6 9.01611e5
```
Subexpression:
total(:api00, bclus1)
Evaluated output:
1×2 DataFrame
Row │ total SE
│ Float64 Float64
─────┼──────────────────────
1 │ 3.98999e6 9.01611e5
Expected output:
diff =
Warning: Diff output requires color.
1×2 DataFrame
Row │ total SE
│ Float64 Float64
─────┼──────────────────────
1 │ 3.98999e6 9.01611e5
|
src/bootstrap.jl#L81
doctest failure in ~/work/Survey.jl/Survey.jl/src/bootstrap.jl:81-91
```jldoctest; setup = :(using Survey, StatsBase, DataFrames; apiclus1 = load_data("apiclus1"); dclus1 = SurveyDesign(apiclus1; clusters = :dnum, weights = :pw); bclus1 = dclus1 |> bootweights;)
julia> mean(df::DataFrame, column, weights) = StatsBase.mean(df[!, column], StatsBase.weights(df[!, weights]));
julia> variance(:api00, mean, bclus1)
1×2 DataFrame
Row │ estimator SE
│ Float64 Float64
─────┼────────────────────
1 │ 644.169 23.4107
```
Subexpression:
variance(:api00, mean, bclus1)
Evaluated output:
1×2 DataFrame
Row │ estimator SE
│ Float64 Float64
─────┼────────────────────
1 │ 644.169 23.4107
Expected output:
diff =
Warning: Diff output requires color.
1×2 DataFrame
Row │ estimator SE
│ Float64 Float64
─────┼────────────────────
1 │ 644.169 23.4107
|
src/jackknife.jl#L97
doctest failure in ~/work/Survey.jl/Survey.jl/src/jackknife.jl:97-107
```jldoctest; setup = :(using Survey, StatsBase, DataFrames; apistrat = load_data("apistrat"); dstrat = SurveyDesign(apistrat; strata=:stype, weights=:pw); rstrat = jackknifeweights(dstrat);)
julia> mean(df::DataFrame, column, weights) = StatsBase.mean(df[!, column], StatsBase.weights(df[!, weights]));
julia> variance(:api00, mean, rstrat)
1×2 DataFrame
Row │ estimator SE
│ Float64 Float64
─────┼────────────────────
1 │ 662.287 9.53613
```
Subexpression:
variance(:api00, mean, rstrat)
Evaluated output:
1×2 DataFrame
Row │ estimator SE
│ Float64 Float64
─────┼────────────────────
1 │ 662.287 9.53613
Expected output:
diff =
Warning: Diff output requires color.
1×2 DataFrame
Row │ estimator SE
│ Float64 Float64
─────┼────────────────────
1 │ 662.287 9.53613
|
|
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
The logs for this run have expired and are no longer available.
Loading