Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

get_simulate

Turn formula_str into a proper R function


Description

Turn formula_str into a proper R function

Usage

get_simulate(formula_str, pars, nsegments, family)

Arguments

formula_str

string. Returned by get_formula.

nsegments

Positive integer. Number of segments, typically nrow(ST).

family

One of gaussian(), binomial(), bernoulli(), or poission(). Only default link functions are currently supported.

par_trials

String. For binomial models: name of trials column.

pars_pop

List of population parameters which the user must provide.

pars_varying

List varying parameters. They will default to zero (optional for the user).

Value

A string with R code for the fit$simulate() function corresponding to the model.

Author(s)

Jonas Kristoffer Lindeløv jonas@lindeloev.dk


mcp

Regression with Multiple Change Points

v0.3.0
GPL-2
Authors
Jonas Kristoffer Lindeløv [aut, cre] (<https://orcid.org/0000-0003-4565-0595>)
Initial release
2020-07-27

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.