Skip to content

bydomain is hardcoded for bootstrap variance #286

@smishr

Description

@smishr

See line 22-27 in by.jl

    for i = 1:nd
        filtered_dx = filter(!isnan, Xt_mat[i, :] .- X.statistic[i])
        push!(ses, sqrt(sum(filtered_dx .^ 2) / length(filtered_dx)))
    end
    replace!(ses, NaN => 0)
    X.SE = ses

This is hardcoding the variance for "bootstrap" type ReplicateDesign. For future additions, like JKn, the variance is calculated differently.

TODO: Update bydomain function with modularity for current and future methods of variance estimation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions