Learn R Programming

ankiR (version 0.6.0)

anki_fit_forgetting_curve: Fit forgetting curve from review data

Description

Fits a forgetting curve to actual review data and compares it to the theoretical FSRS curve. Can analyze individual cards or aggregate data.

Usage

anki_fit_forgetting_curve(
  path = NULL,
  profile = NULL,
  cid = NULL,
  min_reviews = 5,
  max_cards = 1000
)

Value

A list with fitted curve parameters and comparison data

Arguments

path

Path to collection.anki2 (auto-detected if NULL)

profile

Profile name (first profile if NULL)

cid

Optional card ID for individual card analysis

min_reviews

Minimum reviews required for analysis (default 5)

max_cards

Maximum cards to analyze for aggregate (default 1000)

Examples

Run this code
if (FALSE) {
curve <- anki_fit_forgetting_curve()
plot(curve$data$days_elapsed, curve$data$observed_retention, type = "p")
lines(curve$data$days_elapsed, curve$data$fitted_retention, col = "blue")
}

Run the code above in your browser using DataLab