Learn R Programming

tipmap (version 0.5.2)

fit_beta_1exp: Fit beta distribution for one expert

Description

Fit beta distribution to data elicited from one expert via the roulette method.

Usage

fit_beta_1exp(df)

Value

Parameters (alpha and beta) of a beta fit.

Arguments

df

A dataframe generated by get_model_input_1exp.

Details

This function is based on SHELF::fitdist and yields identical results.

See Also

get_model_input_1exp and fit_beta_mult_exp.

Examples

Run this code
chips <- c(0, 2, 3, 2, 1, 1, 1, 0, 0, 0)
x <- get_cum_probs_1exp(chips)
y <- get_model_input_1exp(x)
fit_beta_1exp(df = y)["par"] 

Run the code above in your browser using DataLab