Learn R Programming

lame (version 1.3.4)

as_draws: Generic dispatcher for posterior::as_draws on lame fits

Description

Lightweight S3 generic so calls of the form as_draws(fit) dispatch through R's S3 system even when the posterior package is not loaded. When posterior is loaded, its generic of the same name is resolved first by R's namespace search; this fallback only fires for bare-namespace use.

Usage

as_draws(x, ...)

Value

An object dispatched by the relevant method (typically a posterior::draws_array for an ame / lame fit).

Arguments

x

a fitted ame or lame object.

...

passed to the relevant method.