input_model_bernoulli: input_model_bernoulli

Description Usage Arguments Value See Also

View source: R/input_model_bernoulli.R

Description

Bernoulli - Beta model. Fits num_models Bernoulli models to a numerical vector (attribute).

Usage

1
input_model_bernoulli(data, num_models, prior)

Arguments

data

Numerical vector of data points.

num_models

Number of distributions to fit.

prior

List containing the conjugate prior distribution parameters (Beta in this case). List has to contain attributes "a" and "b" being the shape prior values.

Value

List of num_models S3 classes of type 'bernoulli' The class 'bernoulli' has the following methods defined: mean, sample and var.

See Also

Other input models: input_model_mvnormal_iw, input_model_normal_ig, input_model_normal, input_model_poisson


fortunar/input_uncertainty_model documentation built on May 30, 2019, 6:26 a.m.