Add GLM with design-based standard errors #762
Annotations
10 errors and 4 warnings
build:
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
|
build:
src/mean.jl#L108
doctest failure in ~/work/Survey.jl/Survey.jl/src/mean.jl:108-125
```jldoctest meanlabel; setup = :(apiclus1 = load_data("apiclus1"); dclus1 = SurveyDesign(apiclus1; clusters = :dnum, weights = :pw); bclus1 = dclus1 |> bootweights)
julia> mean(:api00, :cname, dclus1)
11×2 DataFrame
Row │ mean cname
│ Float64 String15
─────┼──────────────────────
1 │ 669.0 Alameda
2 │ 472.0 Fresno
3 │ 452.5 Kern
4 │ 647.267 Los Angeles
5 │ 623.25 Mendocino
6 │ 519.25 Merced
7 │ 710.563 Orange
8 │ 709.556 Plumas
9 │ 659.436 San Diego
10 │ 551.189 San Joaquin
11 │ 732.077 Santa Clara
```
Subexpression:
mean(:api00, :cname, dclus1)
Evaluated output:
11×2 DataFrame
Row │ mean cname
│ Float64 String
─────┼──────────────────────
1 │ 669.0 Alameda
2 │ 472.0 Fresno
3 │ 452.5 Kern
4 │ 647.267 Los Angeles
5 │ 623.25 Mendocino
6 │ 519.25 Merced
7 │ 710.563 Orange
8 │ 709.556 Plumas
9 │ 659.436 San Diego
10 │ 551.189 San Joaquin
11 │ 732.077 Santa Clara
Expected output:
11×2 DataFrame
Row │ mean cname
│ Float64 String15
─────┼──────────────────────
1 │ 669.0 Alameda
2 │ 472.0 Fresno
3 │ 452.5 Kern
4 │ 647.267 Los Angeles
5 │ 623.25 Mendocino
6 │ 519.25 Merced
7 │ 710.563 Orange
8 │ 709.556 Plumas
9 │ 659.436 San Diego
10 │ 551.189 San Joaquin
11 │ 732.077 Santa Clara
diff =
Warning: Diff output requires color.
11×2 DataFrame
Row │ mean cname
cname
│ Float64 String15
String
─────┼──────────────────────
1 │ 669.0 Alameda
2 │ 472.0 Fresno
3 │ 452.5 Kern
4 │ 647.267 Los Angeles
5 │ 623.25 Mendocino
6 │ 519.25 Merced
7 │ 710.563 Orange
8 │ 709.556 Plumas
9 │ 659.436 San Diego
10 │ 551.189 San Joaquin
11 │ 732.077 Santa Clara
|
build:
src/mean.jl#L128
doctest failure in ~/work/Survey.jl/Survey.jl/src/mean.jl:128-145
```jldoctest meanlabel
julia> mean(:api00, :cname, bclus1)
11×3 DataFrame
Row │ mean SE cname
│ Float64 Float64 String15
─────┼───────────────────────────────
1 │ 732.077 NaN Santa Clara
2 │ 659.436 NaN San Diego
3 │ 519.25 NaN Merced
4 │ 647.267 NaN Los Angeles
5 │ 710.563 NaN Orange
6 │ 472.0 NaN Fresno
7 │ 709.556 NaN Plumas
8 │ 669.0 NaN Alameda
9 │ 551.189 NaN San Joaquin
10 │ 452.5 NaN Kern
11 │ 623.25 NaN Mendocino
```
Subexpression:
mean(:api00, :cname, bclus1)
Evaluated output:
11×3 DataFrame
Row │ mean SE cname
│ Float64 Float64 String
─────┼────────────────────────────────────
1 │ 732.077 58.2169 Santa Clara
2 │ 659.436 2.66703 San Diego
3 │ 519.25 2.28936e-15 Merced
4 │ 647.267 47.6233 Los Angeles
5 │ 710.563 2.19826e-13 Orange
6 │ 472.0 1.13687e-13 Fresno
7 │ 709.556 1.26058e-13 Plumas
8 │ 669.0 1.27527e-13 Alameda
9 │ 551.189 2.18162e-13 San Joaquin
10 │ 452.5 0.0 Kern
11 │ 623.25 1.09545e-13 Mendocino
Expected output:
11×3 DataFrame
Row │ mean SE cname
│ Float64 Float64 String15
─────┼───────────────────────────────
1 │ 732.077 NaN Santa Clara
2 │ 659.436 NaN San Diego
3 │ 519.25 NaN Merced
4 │ 647.267 NaN Los Angeles
5 │ 710.563 NaN Orange
6 │ 472.0 NaN Fresno
7 │ 709.556 NaN Plumas
8 │ 669.0 NaN Alameda
9 │ 551.189 NaN San Joaquin
10 │ 452.5 NaN Kern
11 │ 623.25 NaN Mendocino
diff =
Warning: Diff output requires color.
11×3 DataFrame
Row │ mean SE cname
SE cname
│ Float64 Float64 String15
─────┼───────────────────────────────
Float64 String
─────┼────────────────────────────────────
1 │ 732.077 NaN 732.077 58.2169 Santa Clara
2 │ 659.436 NaN 659.436 2.66703 San Diego
3 │ 519.25 NaN 519.25 2.28936e-15 Merced
4 │ 647.267 NaN 647.267 47.6233 Los Angeles
5 │ 710.563 NaN 710.563 2.19826e-13 Orange
6 │ 472.0 NaN 472.0 1.13687e-13 Fresno
7 │ 709.556 NaN 709.556 1.26058e-13 Plumas
8 │ 669.0 NaN 669.0 1.27527e-13 Alameda
9 │ 551.189 NaN 551.189 2.18162e-13 San Joaquin
10 │ 452.5 NaN 452.5 0.0 Kern
11 │ 623.25 NaN 623.25 1.09545e-13 Mendocino
|
build:
src/ratio.jl#L6
doctest failure in ~/work/Survey.jl/Survey.jl/src/ratio.jl:6-17
```jldoctest
julia> apiclus1 = load_data("apiclus1");
julia> dclus1 = SurveyDesign(apiclus1; clusters = :dnum, weights = :pw);
julia> ratio(:api00, :enroll, dclus1)
1×1 DataFrame
Row │ ratio
│ Float64
─────┼─────────
1 │ 1.17182
```
Subexpression:
ratio(:api00, :enroll, dclus1)
Evaluated output:
ERROR: MethodError: no method matching ratio(::Symbol, ::Symbol, ::SurveyDesign)
Closest candidates are:
ratio(!Matched::Vector{Symbol}, ::Any, ::AbstractSurveyDesign)
@ Survey ~/work/Survey.jl/Survey.jl/src/ratio.jl:114
Stacktrace:
[1] top-level scope
@ none:1
Expected output:
1×1 DataFrame
Row │ ratio
│ Float64
─────┼─────────
1 │ 1.17182
diff =
Warning: Diff output requires color.
1×1 DataFrame
Row │ ratio
│ Float64
─────┼─────────
1 │ 1.17182ERROR: MethodError: no method matching ratio(::Symbol, ::Symbol, ::SurveyDesign)
Closest candidates are:
ratio(!Matched::Vector{Symbol}, ::Any, ::AbstractSurveyDesign)
@ Survey ~/work/Survey.jl/Survey.jl/src/ratio.jl:114
Stacktrace:
[1] top-level scope
@ none:1
|
build:
src/ratio.jl#L45
doctest failure in ~/work/Survey.jl/Survey.jl/src/ratio.jl:45-53
```jldoctest; setup = :(using Survey, StatsBase; apiclus1 = load_data("apiclus1"); dclus1 = SurveyDesign(apiclus1; clusters = :dnum, weights = :pw); bclus1 = bootweights(dclus1);)
julia> ratio([:api00, :api99], bclus1)
1×2 DataFrame
Row │ estimator SE
│ Float64 Float64
─────┼───────────────────────
1 │ 1.06127 0.00672259
```
Subexpression:
ratio([:api00, :api99], bclus1)
Evaluated output:
1×2 DataFrame
Row │ estimator SE
│ Float64 Float64
─────┼───────────────────────
1 │ 1.06127 0.00672259
Expected output:
diff =
Warning: Diff output requires color.
1×2 DataFrame
Row │ estimator SE
│ Float64 Float64
─────┼───────────────────────
1 │ 1.06127 0.00672259
|
build:
src/ratio.jl#L74
doctest failure in ~/work/Survey.jl/Survey.jl/src/ratio.jl:74-91
```jldoctest ratiolabel; setup = :(using Survey, StatsBase; apiclus1 = load_data("apiclus1"); dclus1 = SurveyDesign(apiclus1; clusters = :dnum, weights = :pw); bclus1 = dclus1 |> bootweights;)
julia> ratio([:api00, :api99], :cname, dclus1)
11×2 DataFrame
Row │ ratio cname
│ Float64 String15
─────┼──────────────────────
1 │ 1.09852 Alameda
2 │ 1.17779 Fresno
3 │ 1.11453 Kern
4 │ 1.06307 Los Angeles
5 │ 1.00565 Mendocino
6 │ 1.08121 Merced
7 │ 1.03628 Orange
8 │ 1.02127 Plumas
9 │ 1.06112 San Diego
10 │ 1.07331 San Joaquin
11 │ 1.05598 Santa Clara
```
Subexpression:
ratio([:api00, :api99], :cname, dclus1)
Evaluated output:
11×2 DataFrame
Row │ ratio cname
│ Float64 String
─────┼──────────────────────
1 │ 1.09852 Alameda
2 │ 1.17779 Fresno
3 │ 1.11453 Kern
4 │ 1.06307 Los Angeles
5 │ 1.00565 Mendocino
6 │ 1.08121 Merced
7 │ 1.03628 Orange
8 │ 1.02127 Plumas
9 │ 1.06112 San Diego
10 │ 1.07331 San Joaquin
11 │ 1.05598 Santa Clara
Expected output:
11×2 DataFrame
Row │ ratio cname
│ Float64 String15
─────┼──────────────────────
1 │ 1.09852 Alameda
2 │ 1.17779 Fresno
3 │ 1.11453 Kern
4 │ 1.06307 Los Angeles
5 │ 1.00565 Mendocino
6 │ 1.08121 Merced
7 │ 1.03628 Orange
8 │ 1.02127 Plumas
9 │ 1.06112 San Diego
10 │ 1.07331 San Joaquin
11 │ 1.05598 Santa Clara
diff =
Warning: Diff output requires color.
11×2 DataFrame
Row │ ratio cname
cname
│ Float64 String15
String
─────┼──────────────────────
1 │ 1.09852 Alameda
2 │ 1.17779 Fresno
3 │ 1.11453 Kern
4 │ 1.06307 Los Angeles
5 │ 1.00565 Mendocino
6 │ 1.08121 Merced
7 │ 1.03628 Orange
8 │ 1.02127 Plumas
9 │ 1.06112 San Diego
10 │ 1.07331 San Joaquin
11 │ 1.05598 Santa Clara
|
build:
src/ratio.jl#L95
doctest failure in ~/work/Survey.jl/Survey.jl/src/ratio.jl:95-112
```jldoctest ratiolabel
julia> ratio([:api00, :api99], :cname, bclus1)
11×3 DataFrame
Row │ estimator SE cname
│ Float64 Float64 String15
─────┼─────────────────────────────────
1 │ 1.05598 NaN Santa Clara
2 │ 1.06112 NaN San Diego
3 │ 1.08121 NaN Merced
4 │ 1.06307 NaN Los Angeles
5 │ 1.03628 NaN Orange
6 │ 1.17779 NaN Fresno
7 │ 1.02127 NaN Plumas
8 │ 1.09852 NaN Alameda
9 │ 1.07331 NaN San Joaquin
10 │ 1.11453 NaN Kern
11 │ 1.00565 NaN Mendocino
```
Subexpression:
ratio([:api00, :api99], :cname, bclus1)
Evaluated output:
11×3 DataFrame
Row │ estimator SE cname
│ Float64 Float64 String
─────┼─────────────────────────────────────
1 │ 1.05598 0.0189429 Santa Clara
2 │ 1.06112 0.00979481 San Diego
3 │ 1.08121 6.85453e-17 Merced
4 │ 1.06307 0.0257137 Los Angeles
5 │ 1.03628 0.0 Orange
6 │ 1.17779 6.27535e-18 Fresno
7 │ 1.02127 0.0 Plumas
8 │ 1.09852 2.12683e-16 Alameda
9 │ 1.07331 2.22045e-16 San Joaquin
10 │ 1.11453 0.0 Kern
11 │ 1.00565 0.0 Mendocino
Expected output:
11×3 DataFrame
Row │ estimator SE cname
│ Float64 Float64 String15
─────┼─────────────────────────────────
1 │ 1.05598 NaN Santa Clara
2 │ 1.06112 NaN San Diego
3 │ 1.08121 NaN Merced
4 │ 1.06307 NaN Los Angeles
5 │ 1.03628 NaN Orange
6 │ 1.17779 NaN Fresno
7 │ 1.02127 NaN Plumas
8 │ 1.09852 NaN Alameda
9 │ 1.07331 NaN San Joaquin
10 │ 1.11453 NaN Kern
11 │ 1.00565 NaN Mendocino
diff =
Warning: Diff output requires color.
11×3 DataFrame
Row │ estimator SE cname
SE cname
│ Float64 Float64 String15
─────┼─────────────────────────────────
Float64 String
─────┼─────────────────────────────────────
1 │ 1.05598 NaN 1.05598 0.0189429 Santa Clara
2 │ 1.06112 NaN 1.06112 0.00979481 San Diego
3 │ 1.08121 NaN 1.08121 6.85453e-17 Merced
4 │ 1.06307 NaN 1.06307 0.0257137 Los Angeles
5 │ 1.03628 NaN 1.03628 0.0 Orange
6 │ 1.17779 NaN 1.17779 6.27535e-18 Fresno
7 │ 1.02127 NaN 1.02127 0.0 Plumas
8 │ 1.09852 NaN 1.09852 2.12683e-16 Alameda
9 │ 1.07331 NaN 1.07331 2.22045e-16 San Joaquin
10 │ 1.11453 NaN 1.11453 0.0 Kern
11 │ 1.00565 NaN 1.00565 0.0 Mendocino
|
build:
src/bootstrap.jl#L88
doctest failure in ~/work/Survey.jl/Survey.jl/src/bootstrap.jl:88-98
```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
|
build:
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
|
build:
src/total.jl#L38
doctest failure in ~/work/Survey.jl/Survey.jl/src/total.jl:38-46
```jldoctest; setup = :(using Survey; 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
|
build:
../../../.julia/packages/Documenter/bYYzK/src/Utilities/Utilities.jl#L34
'manual' is not unique in src/getting_started.md.
|
|
build:
../../../.julia/packages/Documenter/bYYzK/src/Writers/HTMLWriter.jl#L2081
invalid local link: unresolved path in getting_started.md
link.text =
1-element Vector{Any}:
"Manual"
link.url = "@ref manual"
|
build
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/
|