Extract Posterior Draws or Bootstrap Resamples from marginaleffects
Objects
Source: R/posterior_draws.R
posterior_draws.Rd
Extract Posterior Draws or Bootstrap Resamples from marginaleffects
Objects
Arguments
- x
An object produced by a
marginaleffects
package function, such aspredictions()
,avg_slopes()
,hypotheses()
, etc.- shape
string indicating the shape of the output format:
"long": long format data frame
"DxP": Matrix with draws as rows and parameters as columns
"PxD": Matrix with draws as rows and parameters as columns
"rvar": Random variable datatype (see
posterior
package documentation).