aver: Estimated overall average from sample selection model

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/aver.r

Description

aver can be used to calculate the overall estimated average from a sample selection model, with corresponding confidence interval obtained using the delta method.

Usage

1
aver(x, sig.lev = 0.05, sw = NULL, univariate = FALSE, delta = TRUE, n.sim = 100)

Arguments

x

A fitted SemiParSampleSel object as produced by SemiParSampleSel().

sig.lev

Significance level.

sw

Survey weights.

univariate

It indicates whether the prevalence is calculated using a (naive/classic) univariate equation model or sample selection model. This option has been introduced to compared adjusted and unadjusted estimates.

delta

If TRUE then the delta method is used for confidence interval calculations, otherwise Bayesian posterior simulation is employed.

n.sim

Number of simulated coefficient vectors from the posterior distribution of the estimated model parameters. This is used when delta = FALSE. It may be increased if more precision is required.

Details

aver estimates the overall average of an outcome of interest when there are missing values that are not at random.

Value

res

It returns three values: lower confidence interval limit, estimated average and upper confidence interval limit.

sig.lev

Significance level used.

Author(s)

Maintainer: Giampiero Marra [email protected]

See Also

SemiParSampleSel-package, SemiParSampleSel, summary.SemiParSampleSel

Examples

1
## see examples for SemiParSampleSel

SemiParSampleSel documentation built on May 29, 2017, 7:54 p.m.