results_dd {beezdiscounting}R Documentation

Extract Results from Delay-Discounting Model

Description

This function extracts model parameter estimates, fit statistics, and confidence intervals from a fitted delay-discounting model.

Usage

results_dd(fit_dd_object)

Arguments

fit_dd_object

A fitted delay-discounting model object of class "fit_dd", created by the fit_dd() function.

Value

A tibble containing the following columns:

Examples

data <- data.frame(
  id = rep(1:2, each = 6),
  x = rep(c(1, 7, 30, 90, 180, 365), 2),
  y = c(0.9, 0.5, 0.3, 0.2, 0.1, 0.05, 0.85, 0.55, 0.35, 0.15, 0.1, 0.05)
)
fit <- fit_dd(data, equation = "mazur", method = "two stage")
results_dd(fit)

[Package beezdiscounting version 0.3.2 Index]