imagine: Combine draw, getweights, and boil

Description Usage Arguments Value

View source: R/imagine.R

Description

This is exported, but don't call it directly.

Usage

1
imagine(z, m, x, f, y, B, w = 1, g = stats::weighted.mean, ...)

Arguments

z

a (conceptual) row of a data.frame given by pick.

m

a model object.

x

matrix. a data set; a population.

f

function. a boiler.

y

numeric. values of the dependent variable representing success under f.

B

matrix. A set of plausible coefficient vectors generated via consider.

w

numeric. weights with respect to which to take the g function. Default 1.

g

function. the desired one-number summary of the boiled values. Default stats::weighted.mean.

...

other parameters ignored for the moment, but to be implemented.

Value

a data.frame of simulated outcome summary statistics.


deepfriar/gilez documentation built on Dec. 19, 2021, 10:09 p.m.