build_uniparam_args: Build a uniparameter-friendly list of arguments

View source: R/builder_functions.R

build_uniparam_argsR Documentation

Build a uniparameter-friendly list of arguments

Description

In general params will be a list returned by an estimation function, so just tack the x argument on the front for do.call purposes later. However sometimes the params may be a bespoke object of some kind, e.g. the result of calling ghyp() from the ghyp package, and needs to be wrapped in a list.

Usage

build_uniparam_args(x, params)

Arguments

x

The non-parameter element of the arguments (e.g. p, for q-functions).

params

The parameters.

Value

A list consisting of x and params in a format suitable for passing to do.call.

Examples

build_uniparam_args(1:10, list(mean = 0, sd = 1))

PaulMTeggin/practechniques documentation built on Aug. 19, 2023, 4:44 p.m.