draw_effs: Draws effect estimates from an APC sample using Bayesian...

Description Usage Arguments Value Examples

View source: R/samplingfuns.R

Description

Draws effect estimates from an APC sample using Bayesian Model Averaging.

Usage

1
draw_effs(sampobj, means = FALSE, betas = FALSE, tol = NULL, ...)

Arguments

sampobj

An apcsamp object (apcsamp)

means

Logical: TRUE returns mean estimates; FALSE generates centered estimates (relatvie to grand mean).

betas

Logical: TRUE returns a vector of the betas.

tol

A number between 0 and 1, which indicates tolerance to rounding and the number to be drawn. e.g. tol=0.001 is tolerance to the third decimal and draws 1,000 samples.

Value

An object of apceffects.

Examples

1
2
3
4
5
6
data(apcsim)

sampleobject = apcsamp(y1~a+p+c,data=apcsim,method='ml',
samples=250,cores=4,chains=4)

effectsobject = draw_effs(sampleobject,tol=0.01)

bjb40/apcwin documentation built on May 25, 2019, 3:24 p.m.