Add GLM with design-based standard errors #761
Annotations
10 errors and 4 warnings
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/quantile.jl#L141
doctest failure in ~/work/Survey.jl/Survey.jl/src/quantile.jl:141-158
```jldoctest meanlabel; setup = :(using Survey, StatsBase; apiclus1 = load_data("apiclus1"); dclus1 = SurveyDesign(apiclus1; clusters = :dnum, weights = :pw); bclus1 = dclus1 |> bootweights;)
julia> quantile(:api00, :cname, dclus1, 0.5)
11×2 DataFrame
Row │ 0.5th percentile cname
│ Float64 String15
─────┼───────────────────────────────
1 │ 669.0 Alameda
2 │ 474.5 Fresno
3 │ 452.5 Kern
4 │ 628.0 Los Angeles
5 │ 616.5 Mendocino
6 │ 519.5 Merced
7 │ 717.5 Orange
8 │ 699.0 Plumas
9 │ 657.0 San Diego
10 │ 542.0 San Joaquin
11 │ 718.0 Santa Clara
```
Subexpression:
quantile(:api00, :cname, dclus1, 0.5)
Evaluated output:
11×2 DataFrame
Row │ 0.5th percentile cname
│ Float64 String
─────┼───────────────────────────────
1 │ 669.0 Alameda
2 │ 474.5 Fresno
3 │ 452.5 Kern
4 │ 628.0 Los Angeles
5 │ 616.5 Mendocino
6 │ 519.5 Merced
7 │ 717.5 Orange
8 │ 699.0 Plumas
9 │ 657.0 San Diego
10 │ 542.0 San Joaquin
11 │ 718.0 Santa Clara
Expected output:
11×2 DataFrame
Row │ 0.5th percentile cname
│ Float64 String15
─────┼───────────────────────────────
1 │ 669.0 Alameda
2 │ 474.5 Fresno
3 │ 452.5 Kern
4 │ 628.0 Los Angeles
5 │ 616.5 Mendocino
6 │ 519.5 Merced
7 │ 717.5 Orange
8 │ 699.0 Plumas
9 │ 657.0 San Diego
10 │ 542.0 San Joaquin
11 │ 718.0 Santa Clara
diff =
Warning: Diff output requires color.
11×2 DataFrame
Row │ 0.5th percentile cname
cname
│ Float64 String15
String
─────┼───────────────────────────────
1 │ 669.0 Alameda
2 │ 474.5 Fresno
3 │ 452.5 Kern
4 │ 628.0 Los Angeles
5 │ 616.5 Mendocino
6 │ 519.5 Merced
7 │ 717.5 Orange
8 │ 699.0 Plumas
9 │ 657.0 San Diego
10 │ 542.0 San Joaquin
11 │ 718.0 Santa Clara
|
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
|
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
|
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
|
src/total.jl#L99
doctest failure in ~/work/Survey.jl/Survey.jl/src/total.jl:99-116
```jldoctest totallabel; setup = :(using Survey; apiclus1 = load_data("apiclus1"); dclus1 = SurveyDesign(apiclus1; clusters = :dnum, weights = :pw); bclus1 = dclus1 |> bootweights;)
julia> total(:api00, :cname, dclus1)
11×2 DataFrame
Row │ total cname
│ Float64 String15
─────┼─────────────────────────────
1 │ 3.7362e6 Alameda
2 │ 9.58547e5 Fresno
3 │ 459473.0 Kern
4 │ 2.46465e6 Los Angeles
5 │ 1.26571e6 Mendocino
6 │ 1.0545e6 Merced
7 │ 5.7721e6 Orange
8 │ 3.2422e6 Plumas
9 │ 9.20698e6 San Diego
10 │ 1.03541e7 San Joaquin
11 │ 3.22122e6 Santa Clara
```
Subexpression:
total(:api00, :cname, dclus1)
Evaluated output:
11×2 DataFrame
Row │ total cname
│ Float64 String
─────┼─────────────────────────────
1 │ 249080.0 Alameda
2 │ 63903.1 Fresno
3 │ 30631.5 Kern
4 │ 3.2862e5 Los Angeles
5 │ 84380.6 Mendocino
6 │ 70300.2 Merced
7 │ 3.84807e5 Orange
8 │ 2.16147e5 Plumas
9 │ 1.2276e6 San Diego
10 │ 6.90276e5 San Joaquin
11 │ 6.44244e5 Santa Clara
Expected output:
11×2 DataFrame
Row │ total cname
│ Float64 String15
─────┼─────────────────────────────
1 │ 3.7362e6 Alameda
2 │ 9.58547e5 Fresno
3 │ 459473.0 Kern
4 │ 2.46465e6 Los Angeles
5 │ 1.26571e6 Mendocino
6 │ 1.0545e6 Merced
7 │ 5.7721e6 Orange
8 │ 3.2422e6 Plumas
9 │ 9.20698e6 San Diego
10 │ 1.03541e7 San Joaquin
11 │ 3.22122e6 Santa Clara
diff =
Warning: Diff output requires color.
11×2 DataFrame
Row │ total cname
cname
│ Float64 String15
String
─────┼─────────────────────────────
1 │ 3.7362e6 │ 249080.0 Alameda
2 │ 9.58547e5 │ 63903.1 Fresno
3 │ 459473.0 │ 30631.5 Kern
4 │ 2.46465e6 3.2862e5 Los Angeles
5 │ 1.26571e6 │ 84380.6 Mendocino
6 │ 1.0545e6 │ 70300.2 Merced
7 │ 5.7721e6 3.84807e5 Orange
8 │ 3.2422e6 2.16147e5 Plumas
9 │ 9.20698e6 1.2276e6 San Diego
10 │ 1.03541e7 6.90276e5 San Joaquin
11 │ 3.22122e6 6.44244e5 Santa Clara
|
src/total.jl#L119
doctest failure in ~/work/Survey.jl/Survey.jl/src/total.jl:119-136
```jldoctest totallabel
julia> total(:api00, :cname, bclus1)
11×3 DataFrame
Row │ total SE cname
│ Float64 Float64 String15
─────┼────────────────────────────────────────
1 │ 3.22122e6 2.6143e6 Santa Clara
2 │ 9.20698e6 8.00251e6 San Diego
3 │ 1.0545e6 9.85983e5 Merced
4 │ 2.46465e6 2.15017e6 Los Angeles
5 │ 5.7721e6 5.40929e6 Orange
6 │ 9.58547e5 8.95488e5 Fresno
7 │ 3.2422e6 3.03494e6 Plumas
8 │ 3.7362e6 3.49184e6 Alameda
9 │ 1.03541e7 9.69862e6 San Joaquin
10 │ 459473.0 4.30027e5 Kern
11 │ 1.26571e6 1.18696e6 Mendocino
```
Subexpression:
total(:api00, :cname, bclus1)
Evaluated output:
11×3 DataFrame
Row │ total SE cname
│ Float64 Float64 String
─────┼────────────────────────────────────────────
1 │ 6.44244e5 4.2273e5 Santa Clara
2 │ 1.2276e6 8.62727e5 San Diego
3 │ 70300.2 71336.3 Merced
4 │ 3.2862e5 2.93936e5 Los Angeles
5 │ 3.84807e5 3.88014e5 Orange
6 │ 63903.1 64781.7 Fresno
7 │ 2.16147e5 2.12089e5 Plumas
8 │ 249080.0 2.49228e5 Alameda
9 │ 6.90276e5 6.81604e5 San Joaquin
10 │ 30631.5 30870.3 Kern
11 │ 84380.6 80215.9 Mendocino
Expected output:
11×3 DataFrame
Row │ total SE cname
│ Float64 Float64 String15
─────┼────────────────────────────────────────
1 │ 3.22122e6 2.6143e6 Santa Clara
2 │ 9.20698e6 8.00251e6 San Diego
3 │ 1.0545e6 9.85983e5 Merced
4 │ 2.46465e6 2.15017e6 Los Angeles
5 │ 5.7721e6 5.40929e6 Orange
6 │ 9.58547e5 8.95488e5 Fresno
7 │ 3.2422e6 3.03494e6 Plumas
8 │ 3.7362e6 3.49184e6 Alameda
9 │ 1.03541e7 9.69862e6 San Joaquin
10 │ 459473.0 4.30027e5 Kern
11 │ 1.26571e6 1.18696e6 Mendocino
diff =
Warning: Diff output requires color.
11×3 DataFrame
Row │ total SE cname
SE cname
│ Float64 Float64 String15
─────┼────────────────────────────────────────
Float64 String
─────┼────────────────────────────────────────────
1 │ 3.22122e6 2.6143e6 6.44244e5 4.2273e5 Santa Clara
2 │ 9.20698e6 8.00251e6 1.2276e6 8.62727e5 San Diego
3 │ 1.0545e6 9.85983e5 │ 70300.2 71336.3 Merced
4 │ 2.46465e6 2.15017e6 3.2862e5 2.93936e5 Los Angeles
5 │ 5.7721e6 5.40929e6 3.84807e5 3.88014e5 Orange
6 │ 9.58547e5 8.95488e5 │ 63903.1 64781.7 Fresno
7 │ 3.2422e6 3.03494e6 2.16147e5 2.12089e5 Plumas
8 │ 3.7362e6 3.49184e6 │ 249080.0 2.49228e5 Alameda
9 │ 1.03541e7 9.69862e6 6.90276e5 6.81604e5 San Joaquin
10 │ 459473.0 4.30027e5 │ 30631.5 30870.3 Kern
11 │ 1.26571e6 1.18696e6 │ 84380.6 80215.9 Mendocino
|
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/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
|
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
|
../../../.julia/packages/Documenter/bYYzK/src/Utilities/Utilities.jl#L34
'manual' is not unique in src/getting_started.md.
|
|
../../../.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"
|
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