loo_to_est: Turn leave-one-out estimates to per-block estimates

View source: R/resampling.R

loo_to_estR Documentation

Turn leave-one-out estimates to per-block estimates

Description

Inverse of est_to_loo This works for any statistics which, when computed across N blocks, are equal to the weighted mean of the statistics across the N blocks.

Usage

loo_to_est(arr, block_lengths = NULL)

Arguments

arr

3d array with blocked estimates, with blocks in the 3rd dimension.

block_lengths

Optional block lengths. If NULL, will be parsed from 3rd dimnames in blocks

Value

A 3d array with leave-one-out estimates for jackknife. Dimensions are equal to those of arr.

See Also

est_to_loo


uqrmaie1/admixtools documentation built on April 25, 2024, 11:30 a.m.