
Level estimate for a single panel wave, with its replicate variance
Source:R/variance-panel.R
level_estimate.RdEstimates a statistic in ONE wave of a wave_bootstrap() or wave_jackknife() object,
with the variance from that wave's replicates. Lets you report a level and a change from
the same coordinated object.
Usage
level_estimate(
wb,
statistic,
wave = NULL,
level = 0.95,
ci_type = c("normal", "t"),
df = NULL
)
level_mean(wb, variable, wave = NULL, level = 0.95)
level_total(wb, variable, wave = NULL, level = 0.95)Arguments
- wb
a
weightflow_wave_bootorweightflow_wave_jack.- statistic
a function
function(w, data)returning one number.- wave
optional wave label (defaults to the first).
- level
confidence level for the normal interval.
- ci_type
"normal"(default, z) or"t"(Student t withdfdf).- df
degrees of freedom for the
"t"interval;NULLuses the object's design df.- variable
name of a numeric variable in the wave's data.
See also
change_estimate(), level_mean(), level_total()