{
  "_id": "6a1823adacfb0bcc41db39f7",
  "Package": "LaMa",
  "Type": "Package",
  "Title": "Fast Numerical Maximum Likelihood Estimation for Latent Markov\nModels",
  "Version": "2.1.1",
  "Authors@R": "c(\nperson(given = \"Jan-Ole\", family = \"Fischer\",\nemail = \"jan-ole.fischer@mailbox.org\",\nrole = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0009-0004-1556-9053\")))",
  "Description": "A variety of latent Markov models, including hidden Markov\nmodels, hidden semi-Markov models, state-space models and\ncontinuous-time variants can be formulated and estimated within\nthe same framework via directly maximising the likelihood\nfunction using the so-called forward algorithm. Applied\nresearchers often need custom models that standard software\ndoes not easily support. Writing tailored 'R' code offers\nflexibility but suffers from slow estimation speeds. We address\nthese issues by providing easy-to-use functions (written in\n'C++' for speed) for common tasks like the forward algorithm.\nThese functions can be combined into custom models in a\nLego-type approach, offering up to 10-20 times faster\nestimation via standard numerical optimisers. To aid in\nbuilding fully custom likelihood functions, several vignettes\nare included that show how to simulate data from and estimate\nall the above model classes.",
  "URL": "https://janolefi.github.io/LaMa/",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "RoxygenNote": "7.3.3",
  "VignetteBuilder": "knitr",
  "Config/testthat/edition": "3",
  "LazyData": "true",
  "Repository": "https://janolefi.r-universe.dev",
  "Date/Publication": "2026-05-28 10:18:47 UTC",
  "RemoteUrl": "https://github.com/janolefi/lama",
  "RemoteRef": "HEAD",
  "RemoteSha": "7035273e0e481e3767ff7ec555b69be27651a1f9",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-05-28 11:01:55 UTC",
    "User": "root"
  },
  "Author": "Jan-Ole Fischer [aut, cre] (ORCID:\n<https://orcid.org/0009-0004-1556-9053>)",
  "Maintainer": "Jan-Ole Fischer <jan-ole.fischer@mailbox.org>",
  "MD5sum": "3a645933a08d88e1f50dab880ae33b0e",
  "_user": "janolefi",
  "_type": "src",
  "_file": "LaMa_2.1.1.tar.gz",
  "_fileid": "782dc3993f7d367c3bd5c396181fac6a4f7b84cdbf0a2854693f412403b8504b",
  "_filesize": 6507389,
  "_sha256": "782dc3993f7d367c3bd5c396181fac6a4f7b84cdbf0a2854693f412403b8504b",
  "_created": "2026-05-28T11:01:55.000Z",
  "_published": "2026-05-28T11:14:53.227Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 78277059749,
      "time": 197,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "ERROR",
      "artifact": "7264242447"
    },
    {
      "job": 78277059808,
      "time": 195,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "ERROR",
      "artifact": "7264241968"
    },
    {
      "job": 78277059890,
      "time": 192,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "ERROR",
      "artifact": "7264241624"
    },
    {
      "job": 78277059889,
      "time": 192,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "ERROR",
      "artifact": "7264241294"
    },
    {
      "job": 78277059739,
      "time": 120,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "ERROR",
      "artifact": "7264261548"
    },
    {
      "job": 78277059898,
      "time": 231,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "ERROR",
      "artifact": "7264273877"
    },
    {
      "job": 78277059746,
      "time": 178,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "ERROR",
      "artifact": "7264331134"
    },
    {
      "job": 78277059861,
      "time": 673,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "ERROR",
      "artifact": "7264396571"
    },
    {
      "job": 78276163976,
      "time": 347,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7264179263"
    },
    {
      "job": 78277059758,
      "time": 135,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7264223328"
    },
    {
      "job": 78277059696,
      "time": 180,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "ERROR",
      "artifact": "7264237797"
    },
    {
      "job": 78277059685,
      "time": 171,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "ERROR",
      "artifact": "7264234327"
    },
    {
      "job": 78277059799,
      "time": 179,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "ERROR",
      "artifact": "7264236936"
    }
  ],
  "_buildurl": "https://github.com/r-universe/janolefi/actions/runs/26570490675",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/janolefi/lama",
  "_commit": {
    "id": "7035273e0e481e3767ff7ec555b69be27651a1f9",
    "author": "Jan-Ole Koslik <101901166+janoleko@users.noreply.github.com>",
    "committer": "Jan-Ole Koslik <101901166+janoleko@users.noreply.github.com>",
    "message": "silence examples\n",
    "time": 1779963527
  },
  "_maintainer": {
    "name": "Jan-Ole Fischer",
    "email": "jan-ole.fischer@mailbox.org"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "RTMB",
      "version": ">= 1.9.0",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "RcppArmadillo",
      "role": "LinkingTo"
    },
    {
      "package": "Rcpp",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "Matrix",
      "role": "Imports"
    },
    {
      "package": "splines2",
      "role": "Imports"
    },
    {
      "package": "mgcv",
      "role": "Imports"
    },
    {
      "package": "MASS",
      "role": "Imports"
    },
    {
      "package": "numDeriv",
      "role": "Imports"
    },
    {
      "package": "RTMBdist",
      "version": ">= 1.0.4",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "PHSMM",
      "role": "Suggests"
    },
    {
      "package": "MSwM",
      "role": "Suggests"
    },
    {
      "package": "scales",
      "role": "Suggests"
    }
  ],
  "_owner": "janolefi",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-23",
      "n": 12
    },
    {
      "week": "2025-24",
      "n": 15
    },
    {
      "week": "2025-25",
      "n": 16
    },
    {
      "week": "2025-26",
      "n": 3
    },
    {
      "week": "2025-28",
      "n": 9
    },
    {
      "week": "2025-29",
      "n": 6
    },
    {
      "week": "2025-30",
      "n": 1
    },
    {
      "week": "2025-33",
      "n": 1
    },
    {
      "week": "2025-34",
      "n": 2
    },
    {
      "week": "2025-35",
      "n": 2
    },
    {
      "week": "2025-38",
      "n": 4
    },
    {
      "week": "2025-39",
      "n": 7
    },
    {
      "week": "2025-40",
      "n": 7
    },
    {
      "week": "2025-42",
      "n": 3
    },
    {
      "week": "2025-43",
      "n": 7
    },
    {
      "week": "2025-44",
      "n": 6
    },
    {
      "week": "2025-45",
      "n": 7
    },
    {
      "week": "2025-47",
      "n": 1
    },
    {
      "week": "2025-51",
      "n": 1
    },
    {
      "week": "2026-02",
      "n": 3
    },
    {
      "week": "2026-07",
      "n": 1
    },
    {
      "week": "2026-08",
      "n": 4
    },
    {
      "week": "2026-09",
      "n": 7
    },
    {
      "week": "2026-10",
      "n": 23
    },
    {
      "week": "2026-11",
      "n": 13
    },
    {
      "week": "2026-12",
      "n": 18
    },
    {
      "week": "2026-13",
      "n": 2
    },
    {
      "week": "2026-14",
      "n": 11
    },
    {
      "week": "2026-15",
      "n": 18
    },
    {
      "week": "2026-16",
      "n": 5
    },
    {
      "week": "2026-17",
      "n": 1
    },
    {
      "week": "2026-18",
      "n": 4
    },
    {
      "week": "2026-20",
      "n": 10
    },
    {
      "week": "2026-21",
      "n": 10
    },
    {
      "week": "2026-22",
      "n": 2
    }
  ],
  "_tags": [
    {
      "name": "v2.1.1",
      "date": "2026-05-13"
    }
  ],
  "_stars": 19,
  "_contributors": [
    {
      "user": "janolefi",
      "count": 955,
      "uuid": 101901166
    },
    {
      "user": "bbolker",
      "count": 1,
      "uuid": 78918
    }
  ],
  "_userbio": {
    "uuid": 101901166,
    "type": "user",
    "name": "Jan-Ole Fischer",
    "description": "PhD student in Statistics @Bielefeld University 📈"
  },
  "_downloads": {
    "count": 628,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/LaMa"
  },
  "_devurl": "https://github.com/janolefi/lama",
  "_pkgdown": "https://janolefi.github.io/LaMa/",
  "_searchresults": 126,
  "_topics": [
    "openblas",
    "cpp"
  ],
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/LaMa.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/janolefi/lama",
  "_realowner": "janolefi",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0.0",
      "date": "2024-06-04"
    },
    {
      "version": "2.0.0",
      "date": "2024-11-14"
    },
    {
      "version": "2.0.1",
      "date": "2024-11-14"
    },
    {
      "version": "2.0.2",
      "date": "2024-11-20"
    },
    {
      "version": "2.0.3",
      "date": "2025-01-29"
    },
    {
      "version": "2.0.4",
      "date": "2025-06-05"
    },
    {
      "version": "2.0.5",
      "date": "2025-06-15"
    },
    {
      "version": "2.0.6",
      "date": "2025-09-23"
    },
    {
      "version": "2.1.0",
      "date": "2026-03-16"
    },
    {
      "version": "2.1.1",
      "date": "2026-05-13"
    }
  ],
  "_exports": [
    "%sp%",
    "calc_trackInd",
    "cosinor",
    "ddwell",
    "dgamma2",
    "dgmrf2",
    "dskewnorm",
    "dvm",
    "dwrpcauchy",
    "forward",
    "forward_g",
    "forward_hsmm",
    "forward_ihsmm",
    "forward_p",
    "forward_phsmm",
    "forward_s",
    "forward_sp",
    "generator",
    "generator_g",
    "LaMaColors",
    "make_matrices",
    "make_matrices_dens",
    "make_matrices_old",
    "max0_smooth",
    "max2",
    "MCreport",
    "min0_smooth",
    "min2",
    "penalty",
    "penalty_uni",
    "penalty2",
    "pgamma2",
    "pred_matrix",
    "process_hid_formulas",
    "pseudo_res",
    "pskewnorm",
    "pvm",
    "qgamma2",
    "qreml",
    "qreml_old",
    "qskewnorm",
    "report",
    "rgamma2",
    "rskewnorm",
    "rvm",
    "rwrpcauchy",
    "sdreport_outer",
    "sdreportMC",
    "smooth_dens_construct",
    "stateprobs",
    "stateprobs_g",
    "stateprobs_p",
    "stationary",
    "stationary_cont",
    "stationary_ct",
    "stationary_p",
    "stationary_p_sparse",
    "stationary_sparse",
    "tpm",
    "tpm_cont",
    "tpm_ct",
    "tpm_emb",
    "tpm_emb_g",
    "tpm_g",
    "tpm_g2",
    "tpm_hsmm",
    "tpm_hsmm2",
    "tpm_ihsmm",
    "tpm_p",
    "tpm_phsmm",
    "tpm_phsmm2",
    "tpm_thinned",
    "viterbi",
    "viterbi_g",
    "viterbi_p",
    "zero_inflate"
  ],
  "_datasets": [
    {
      "name": "nessi",
      "title": "Loch Ness Monster Acceleration Data",
      "object": "nessi",
      "class": [
        "data.frame"
      ],
      "fields": [
        "ODBA",
        "logODBA",
        "state"
      ],
      "rows": 5000,
      "table": true,
      "tojson": true
    },
    {
      "name": "trex",
      "title": "T-Rex Movement Data",
      "object": "trex",
      "class": [
        "data.frame"
      ],
      "fields": [
        "tod",
        "step",
        "angle",
        "state"
      ],
      "rows": 10000,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "grapes-sp-grapes",
      "title": "Sparsity-retaining matrix multiplication",
      "topics": [
        "%sp%"
      ]
    },
    {
      "page": "calc_trackInd",
      "title": "Calculate the index of the first observation of each track based on an ID variable",
      "topics": [
        "calc_trackInd"
      ]
    },
    {
      "page": "cosinor",
      "title": "Trigonometric basis expansion",
      "topics": [
        "cosinor"
      ]
    },
    {
      "page": "ddwell",
      "title": "State dwell-time distributions of periodically inhomogeneous Markov chains",
      "topics": [
        "ddwell"
      ]
    },
    {
      "page": "dgmrf2",
      "title": "Reparametrised multivariate Gaussian distribution",
      "topics": [
        "dgmrf2"
      ]
    },
    {
      "page": "forward",
      "title": "Forward algorithm to calculate the HMM log-likelihood",
      "concept": [
        "forward algorithms"
      ],
      "topics": [
        "forward"
      ]
    },
    {
      "page": "forward_g",
      "title": "Forward algorithm with time-varying transition probability matrix",
      "concept": [
        "forward algorithms"
      ],
      "topics": [
        "forward_g"
      ]
    },
    {
      "page": "forward_hsmm",
      "title": "Forward algorithm for homogeneous hidden semi-Markov models",
      "concept": [
        "forward algorithms"
      ],
      "topics": [
        "forward_hsmm"
      ]
    },
    {
      "page": "forward_ihsmm",
      "title": "Forward algorithm for hidden semi-Markov models with inhomogeneous state durations and/ or conditional transition probabilities",
      "concept": [
        "forward algorithms"
      ],
      "topics": [
        "forward_ihsmm"
      ]
    },
    {
      "page": "forward_p",
      "title": "Forward algorithm with for periodically varying transition probability matrices",
      "concept": [
        "forward algorithms"
      ],
      "topics": [
        "forward_p"
      ]
    },
    {
      "page": "forward_phsmm",
      "title": "Forward algorithm for hidden semi-Markov models with periodically inhomogeneous state durations and/ or conditional transition probabilities",
      "concept": [
        "forward algorithms"
      ],
      "topics": [
        "forward_phsmm"
      ]
    },
    {
      "page": "forward_s",
      "title": "Forward algorithm for hidden semi-Markov models with homogeneous transition probability matrix",
      "topics": [
        "forward_s"
      ]
    },
    {
      "page": "forward_sp",
      "title": "Forward algorithm for hidden semi-Markov models with periodically varying transition probability matrices",
      "topics": [
        "forward_sp"
      ]
    },
    {
      "page": "gamma2",
      "title": "Reparametrised gamma distribution",
      "topics": [
        "dgamma2",
        "gamma2",
        "pgamma2",
        "qgamma2",
        "rgamma2"
      ]
    },
    {
      "page": "gdeterminant",
      "title": "Computes generalised determinant",
      "topics": [
        "gdeterminant"
      ]
    },
    {
      "page": "generator",
      "title": "Build the generator matrix of a continuous-time Markov chain",
      "concept": [
        "transition probability matrix functions"
      ],
      "topics": [
        "generator"
      ]
    },
    {
      "page": "generator_g",
      "title": "Build generator matrices of a continuous-time Markov chain",
      "concept": [
        "transition probability matrix functions"
      ],
      "topics": [
        "generator_g"
      ]
    },
    {
      "page": "LaMaColors",
      "title": "Generate a colour-blind-friendly palette",
      "topics": [
        "LaMaColors"
      ]
    },
    {
      "page": "logLik.LaMaModel",
      "title": "Extract log-likelihood from LaMaModel object",
      "topics": [
        "logLik.LaMaModel"
      ]
    },
    {
      "page": "logLik.qremlModel",
      "title": "Extract log-likelihood from qremlModel object",
      "topics": [
        "logLik.qremlModel"
      ]
    },
    {
      "page": "make_matrices",
      "title": "Build the design and the penalty matrix for models involving penalised splines based on a formula and a data set",
      "topics": [
        "make_matrices"
      ]
    },
    {
      "page": "make_matrices_dens",
      "title": "Build a standardised P-Spline design matrix and the associated P-Spline penalty matrix",
      "topics": [
        "make_matrices_dens"
      ]
    },
    {
      "page": "make_matrices_old",
      "title": "Build the design and the penalty matrix for models involving penalised splines based on a formula and a data set",
      "topics": [
        "make_matrices_old"
      ]
    },
    {
      "page": "MCreport",
      "title": "Sample parameters from approximate Gaussian posterior distribution",
      "topics": [
        "MCreport"
      ]
    },
    {
      "page": "minmax",
      "title": "AD-compatible minimum and maximum functions",
      "topics": [
        "max2",
        "min2",
        "minmax"
      ]
    },
    {
      "page": "minmax0_smooth",
      "title": "Smooth approximations to max(x, 0) and min(x, 0)",
      "topics": [
        "max0_smooth",
        "min0_smooth",
        "minmax0_smooth"
      ]
    },
    {
      "page": "nessi",
      "title": "Loch Ness Monster Acceleration Data",
      "topics": [
        "nessi"
      ]
    },
    {
      "page": "penalty",
      "title": "Computes penalty based on quadratic form",
      "topics": [
        "penalty"
      ]
    },
    {
      "page": "penalty_uni",
      "title": "Penalty approximation of unimodality constraints for univariates smooths",
      "topics": [
        "penalty_uni"
      ]
    },
    {
      "page": "penalty2",
      "title": "Computes generalised quadratic-form penalties",
      "topics": [
        "penalty2"
      ]
    },
    {
      "page": "plot.LaMaResiduals",
      "title": "Plot pseudo-residuals",
      "topics": [
        "plot.LaMaResiduals"
      ]
    },
    {
      "page": "pred_matrix",
      "title": "Build the prediction design matrix based on new data and model_matrices object created by 'make_matrices'",
      "topics": [
        "pred_matrix"
      ]
    },
    {
      "page": "predict.LaMa_matrices",
      "title": "Build the prediction design matrix based on new data and model_matrices object created by 'make_matrices'",
      "topics": [
        "predict.LaMa_matrices"
      ]
    },
    {
      "page": "process_hid_formulas",
      "title": "Process and standardise formulas for the state process of hidden Markov models",
      "topics": [
        "process_hid_formulas"
      ]
    },
    {
      "page": "pseudo_res",
      "title": "Calculate pseudo-residuals",
      "topics": [
        "pseudo_res"
      ]
    },
    {
      "page": "qreml",
      "title": "Quasi restricted maximum likelihood (qREML) algorithm for models with penalised splines or simple i.i.d. random effects",
      "topics": [
        "qreml"
      ]
    },
    {
      "page": "qreml_old",
      "title": "Quasi restricted maximum likelihood (qREML) algorithm for models with penalised splines or simple i.i.d. random effects",
      "topics": [
        "qreml_old"
      ]
    },
    {
      "page": "report",
      "title": "Get reported quantities from and 'RTMB' object and return a 'LaMaModel'",
      "topics": [
        "report"
      ]
    },
    {
      "page": "sdreport_outer",
      "title": "Report uncertainty of the estimated smoothing parameters or variances",
      "topics": [
        "sdreport_outer"
      ]
    },
    {
      "page": "sdreportMC",
      "title": "Monte Carlo version of 'sdreport'",
      "topics": [
        "sdreportMC"
      ]
    },
    {
      "page": "skewnorm",
      "title": "Skew normal distribution",
      "topics": [
        "dskewnorm",
        "pskewnorm",
        "qskewnorm",
        "rskewnorm",
        "skewnorm"
      ]
    },
    {
      "page": "smooth_dens_construct",
      "title": "Build the design and penalty matrices for smooth density estimation",
      "topics": [
        "smooth_dens_construct"
      ]
    },
    {
      "page": "stateprobs",
      "title": "Calculate conditional local state probabilities in HMMs",
      "concept": [
        "decoding functions"
      ],
      "topics": [
        "stateprobs"
      ]
    },
    {
      "page": "stateprobs_g",
      "title": "Calculate conditional local state probabilities for inhomogeneous HMMs",
      "concept": [
        "decoding functions"
      ],
      "topics": [
        "stateprobs_g"
      ]
    },
    {
      "page": "stateprobs_p",
      "title": "Calculate conditional local state probabilities for periodically inhomogeneous HMMs",
      "concept": [
        "decoding functions"
      ],
      "topics": [
        "stateprobs_p"
      ]
    },
    {
      "page": "stationary",
      "title": "Compute the stationary distribution of a homogeneous Markov chain",
      "concept": [
        "stationary distribution functions"
      ],
      "topics": [
        "stationary"
      ]
    },
    {
      "page": "stationary_ct",
      "title": "Compute the stationary distribution of a continuous-time Markov chain",
      "concept": [
        "stationary distribution functions"
      ],
      "topics": [
        "stationary_cont",
        "stationary_ct"
      ]
    },
    {
      "page": "stationary_p",
      "title": "Periodically stationary distribution of a periodically inhomogeneous Markov chain",
      "concept": [
        "stationary distribution functions"
      ],
      "topics": [
        "stationary_p"
      ]
    },
    {
      "page": "stationary_p_sparse",
      "title": "Sparse version of 'stationary_p'",
      "topics": [
        "stationary_p_sparse"
      ]
    },
    {
      "page": "stationary_sparse",
      "title": "Sparse version of 'stationary'",
      "topics": [
        "stationary_sparse"
      ]
    },
    {
      "page": "summary.qremlModel",
      "title": "Summary method for 'qremlModel' objects",
      "topics": [
        "summary.qremlModel"
      ]
    },
    {
      "page": "tpm",
      "title": "Build the transition probability matrix from unconstrained parameter vector",
      "concept": [
        "transition probability matrix functions"
      ],
      "topics": [
        "tpm"
      ]
    },
    {
      "page": "tpm_ct",
      "title": "Calculate continuous time transition probabilities",
      "concept": [
        "transition probability matrix functions"
      ],
      "topics": [
        "tpm_cont",
        "tpm_ct"
      ]
    },
    {
      "page": "tpm_emb",
      "title": "Build the embedded transition probability matrix of an HSMM from unconstrained parameter vector",
      "concept": [
        "transition probability matrix functions"
      ],
      "topics": [
        "tpm_emb"
      ]
    },
    {
      "page": "tpm_emb_g",
      "title": "Build all embedded transition probability matrices of an inhomogeneous HSMM",
      "concept": [
        "transition probability matrix functions"
      ],
      "topics": [
        "tpm_emb_g"
      ]
    },
    {
      "page": "tpm_g",
      "title": "Build all transition probability matrices of an inhomogeneous HMM",
      "concept": [
        "transition probability matrix functions"
      ],
      "topics": [
        "tpm_g"
      ]
    },
    {
      "page": "tpm_g2",
      "title": "Build all transition probability matrices of an inhomogeneous HMM",
      "concept": [
        "transition probability matrix functions"
      ],
      "topics": [
        "tpm_g2"
      ]
    },
    {
      "page": "tpm_hsmm",
      "title": "Builds the transition probability matrix of an HSMM-approximating HMM",
      "topics": [
        "tpm_hsmm"
      ]
    },
    {
      "page": "tpm_hsmm2",
      "title": "Build the transition probability matrix of an HSMM-approximating HMM",
      "topics": [
        "tpm_hsmm2"
      ]
    },
    {
      "page": "tpm_ihsmm",
      "title": "Builds all transition probability matrices of an inhomogeneous-HSMM-approximating HMM",
      "topics": [
        "tpm_ihsmm"
      ]
    },
    {
      "page": "tpm_p",
      "title": "Build all transition probability matrices of a periodically inhomogeneous HMM",
      "concept": [
        "transition probability matrix functions"
      ],
      "topics": [
        "tpm_p"
      ]
    },
    {
      "page": "tpm_phsmm",
      "title": "Builds all transition probability matrices of an periodic-HSMM-approximating HMM",
      "topics": [
        "tpm_phsmm"
      ]
    },
    {
      "page": "tpm_phsmm2",
      "title": "Build all transition probability matrices of an periodic-HSMM-approximating HMM",
      "topics": [
        "tpm_phsmm2"
      ]
    },
    {
      "page": "tpm_thinned",
      "title": "Compute the transition probability matrix of a thinned periodically inhomogeneous Markov chain.",
      "topics": [
        "tpm_thinned"
      ]
    },
    {
      "page": "trex",
      "title": "T-Rex Movement Data",
      "topics": [
        "trex"
      ]
    },
    {
      "page": "trigBasisExp",
      "title": "Compute the design matrix for a trigonometric basis expansion",
      "topics": [
        "trigBasisExp"
      ]
    },
    {
      "page": "viterbi",
      "title": "Viterbi algorithm for state decoding in HMMs",
      "concept": [
        "decoding functions"
      ],
      "topics": [
        "viterbi"
      ]
    },
    {
      "page": "viterbi_g",
      "title": "Viterbi algorithm for state decoding in inhomogeneous HMMs",
      "concept": [
        "decoding functions"
      ],
      "topics": [
        "viterbi_g"
      ]
    },
    {
      "page": "viterbi_p",
      "title": "Viterbi algorithm for state decoding in periodically inhomogeneous HMMs",
      "concept": [
        "decoding functions"
      ],
      "topics": [
        "viterbi_p"
      ]
    },
    {
      "page": "vm",
      "title": "Von Mises distribution",
      "topics": [
        "dvm",
        "pvm",
        "rvm",
        "vm"
      ]
    },
    {
      "page": "wrpcauchy",
      "title": "Wrapped Cauchy distribution",
      "topics": [
        "dwrpcauchy",
        "rwrpcauchy",
        "wrpcauchy"
      ]
    },
    {
      "page": "zero_inflate",
      "title": "Zero-inflated density constructer",
      "topics": [
        "zero_inflate"
      ]
    }
  ],
  "_readme": "https://github.com/janolefi/lama/raw/HEAD/README.md",
  "_rundeps": [
    "boot",
    "circular",
    "clue",
    "cluster",
    "gamlss.dist",
    "lattice",
    "MASS",
    "Matrix",
    "MatrixModels",
    "mgcv",
    "mnormt",
    "movMF",
    "mvtnorm",
    "nlme",
    "numDeriv",
    "quantreg",
    "Rcpp",
    "RcppArmadillo",
    "RcppEigen",
    "RTMB",
    "RTMBdist",
    "skmeans",
    "slam",
    "sn",
    "SparseM",
    "splines2",
    "statmod",
    "survival",
    "TMB"
  ],
  "_sysdeps": [
    {
      "shlib": "liblapack",
      "package": "libopenblas0-pthread",
      "source": "openblas",
      "version": "0.3.26+ds-1ubuntu0.1",
      "name": "openblas",
      "homepage": "https://www.openblas.net/",
      "description": "Optimized BLAS (linear algebra) library (shared lib, pthread)"
    },
    {
      "shlib": "libblas",
      "package": "libopenblas0-pthread",
      "source": "openblas",
      "version": "0.3.26+ds-1ubuntu0.1",
      "name": "openblas",
      "homepage": "https://www.openblas.net/",
      "description": "Optimized BLAS (linear algebra) library (shared lib, pthread)"
    },
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "14.2.0-4ubuntu2~24.04.1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_vignettes": [
    {
      "source": "Continuous_time_HMMs.Rmd",
      "filename": "Continuous_time_HMMs.html",
      "title": "6 Continuous-time HMMs",
      "author": "Jan-Ole Fischer",
      "engine": "knitr::rmarkdown",
      "headings": [
        "The generator matrix",
        "From the generator to transition probabilities",
        "Likelihood",
        "Example 1: two states",
        "Simulating data",
        "Writing the negative log-likelihood function",
        "Fitting the model",
        "Results",
        "Example 2: three states",
        "References"
      ],
      "created": "2024-02-26 13:15:52",
      "modified": "2026-05-24 20:15:32",
      "commits": 22
    },
    {
      "source": "HSMMs.Rmd",
      "filename": "HSMMs.html",
      "title": "9 Hidden semi-Markov models",
      "author": "Jan-Ole Fischer",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Simulation example",
        "Setting parameters",
        "Simulating data",
        "Writing the negative log-likelihood function",
        "Fitting an HSMM (as an approximating HMM) to the data",
        "Results",
        "Real-data application",
        "Fitting an HSMM (as an approximating HMM) to the muskox data",
        "References"
      ],
      "created": "2024-02-23 16:03:42",
      "modified": "2026-05-13 11:42:31",
      "commits": 18
    },
    {
      "source": "Intro_to_LaMa.Rmd",
      "filename": "Intro_to_LaMa.html",
      "title": "1 Introduction to LaMa",
      "author": "Jan-Ole Fischer",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introductory example: Homogeneous HMM",
        "Generating data from a 2-state HMM",
        "Inference by direct numerical maximum likelihood estimation",
        "Visualising results",
        "References"
      ],
      "created": "2024-04-02 15:08:50",
      "modified": "2026-05-24 13:30:47",
      "commits": 25
    },
    {
      "source": "LaMa_and_RTMB.Rmd",
      "filename": "LaMa_and_RTMB.html",
      "title": "2 Automatic differentiation via RTMB",
      "author": "Jan-Ole Fischer",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Tips and common issues",
        "Non-standard distributions",
        "Operator overloading",
        "Initialising with NA",
        "Wrapping arrays in AD()",
        "No if statements on parameters",
        "Byte compiler side effects",
        "Further reading"
      ],
      "created": "2024-08-06 09:57:23",
      "modified": "2026-05-24 13:59:54",
      "commits": 46
    },
    {
      "source": "Longitudinal_data.Rmd",
      "filename": "Longitudinal_data.html",
      "title": "4 Longitudinal data",
      "author": "Jan-Ole Fischer",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Complete pooling",
        "Generating data",
        "Writing the negative log-likelihood function",
        "Estimating the model",
        "Partial pooling",
        "Random effects",
        "Writing the joint negative log-likelihood"
      ],
      "created": "2024-04-23 12:41:27",
      "modified": "2026-05-23 09:40:26",
      "commits": 15
    },
    {
      "source": "MMMPPs.Rmd",
      "filename": "MMMPPs.html",
      "title": "7 Markov-modulated (marked) Poisson processes",
      "author": "Jan-Ole Fischer",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Likelihood",
        "MMPP",
        "MMMPP",
        "Example 1: Markov-modulated Poisson processes",
        "Setting parameters",
        "Simulating an MMPP",
        "Writing the negative log-likelihood function",
        "Fitting the model",
        "Results",
        "Example 2: Markov-modulated marked Poisson processes",
        "Simulating an MMMPP",
        "References"
      ],
      "created": "2024-02-23 10:34:34",
      "modified": "2026-05-24 20:15:32",
      "commits": 25
    },
    {
      "source": "Extensions.Rmd",
      "filename": "Extensions.html",
      "title": "3 Extensions of the basic model structure",
      "author": "Jan-Ole Fischer",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Multiple data streams",
        "Covariate effects",
        "Covariate effects in the state process",
        "Simulation example",
        "Fitting an HMM to the data",
        "Covariate effects in the state-dependent process",
        "Simulation",
        "Writing the negative log-likelihood function",
        "Fitting a Markov-switching regression model",
        "Visualising results",
        "A special covariate: Seasonality",
        "References"
      ],
      "created": "2026-05-13 08:58:04",
      "modified": "2026-05-24 13:30:47",
      "commits": 6
    },
    {
      "source": "Penalised_splines.Rmd",
      "filename": "Penalised_splines.html",
      "title": "5 Penalised splines",
      "author": "Jan-Ole Fischer",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Smooth transition probabilities",
        "Smooth density estimation",
        "Markov-switching GAMLSS",
        "References"
      ],
      "created": "2024-10-30 10:07:57",
      "modified": "2026-05-24 13:30:28",
      "commits": 41
    },
    {
      "source": "State_space_models.Rmd",
      "filename": "State_space_models.html",
      "title": "8 State-space models",
      "author": "Jan-Ole Fischer",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Example: stochastic volatility model",
        "Simulating data",
        "Writing the negative log-likelihood function",
        "Fitting an SSM to the data",
        "Results",
        "Comparison to Laplace approximation",
        "References"
      ],
      "created": "2024-01-24 16:01:07",
      "modified": "2026-05-24 14:54:05",
      "commits": 31
    }
  ],
  "_score": 8.576404704196012,
  "_indexed": true,
  "_nocasepkg": "lama",
  "_universes": [
    "janolefi"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2.1.1",
      "date": "2026-05-28T11:04:54.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "7035273e0e481e3767ff7ec555b69be27651a1f9",
      "fileid": "c063a87b13e81b4fa7c5f50a408ec045a685b6443bae9b17b213b87a6cc1f904",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/janolefi/actions/runs/26570490675"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2.1.1",
      "date": "2026-05-28T11:04:46.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "7035273e0e481e3767ff7ec555b69be27651a1f9",
      "fileid": "6884a8b46bf07a5941c7beb97e019ec228967652a19cf3ab0bfc19cc33dc8834",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/janolefi/actions/runs/26570490675"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "2.1.1",
      "date": "2026-05-28T11:04:50.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "7035273e0e481e3767ff7ec555b69be27651a1f9",
      "fileid": "0374ecbc19d4b6ebea05ddf92713efd45a7cdc50bb8567259210313f9ef7e9a2",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/janolefi/actions/runs/26570490675"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "2.1.1",
      "date": "2026-05-28T11:04:42.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "7035273e0e481e3767ff7ec555b69be27651a1f9",
      "fileid": "3b1ae680758191de53c2a3adc8097da23a552b3d68c57a64d85b902b0543eb70",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/janolefi/actions/runs/26570490675"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "2.1.1",
      "date": "2026-05-28T11:06:24.000Z",
      "arch": "aarch64",
      "commit": "7035273e0e481e3767ff7ec555b69be27651a1f9",
      "fileid": "6614186f0065d7017fc3889d227f022c83bef4b03aacf24622be61474132c612",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/janolefi/actions/runs/26570490675"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "2.1.1",
      "date": "2026-05-28T11:06:02.000Z",
      "arch": "x86_64",
      "commit": "7035273e0e481e3767ff7ec555b69be27651a1f9",
      "fileid": "6bda577b27ff7255813564cbd34118917ae1476e5d79cf5865a02e99b4a10130",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/janolefi/actions/runs/26570490675"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "2.1.1",
      "date": "2026-05-28T11:09:48.000Z",
      "arch": "aarch64",
      "commit": "7035273e0e481e3767ff7ec555b69be27651a1f9",
      "fileid": "bad7c021f48530ac7f7458b76caa895633318a503ae7de0b346acd3847a8a763",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/janolefi/actions/runs/26570490675"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "2.1.1",
      "date": "2026-05-28T11:12:46.000Z",
      "arch": "x86_64",
      "commit": "7035273e0e481e3767ff7ec555b69be27651a1f9",
      "fileid": "5d7a71819dcc023a927747dce4171cf2457c1b162303f35f0df5e088d009e0a7",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/janolefi/actions/runs/26570490675"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "2.1.1",
      "date": "2026-05-28T11:04:47.000Z",
      "arch": "emscripten",
      "commit": "7035273e0e481e3767ff7ec555b69be27651a1f9",
      "fileid": "57fc877b43cde2cf68987ab2d0e49f252970f6d2b0d796eb6692ac4e5bd0e84c",
      "status": "success",
      "buildurl": "https://github.com/r-universe/janolefi/actions/runs/26570490675"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "2.1.1",
      "date": "2026-05-28T11:03:50.000Z",
      "arch": "x86_64",
      "commit": "7035273e0e481e3767ff7ec555b69be27651a1f9",
      "fileid": "5aa38ea3307729c857f3f0abca6332f671a2ecede7faef704ada8a4da08d8011",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/janolefi/actions/runs/26570490675"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "2.1.1",
      "date": "2026-05-28T11:03:51.000Z",
      "arch": "x86_64",
      "commit": "7035273e0e481e3767ff7ec555b69be27651a1f9",
      "fileid": "67596810001478ba135ef5b6081627db5f66cb91950c1805d9d06edc5d0fafe0",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/janolefi/actions/runs/26570490675"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "2.1.1",
      "date": "2026-05-28T11:03:48.000Z",
      "arch": "x86_64",
      "commit": "7035273e0e481e3767ff7ec555b69be27651a1f9",
      "fileid": "9e24d656c2868762e655578359a425b59d61110034e8d9da39aac64db9124b10",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/janolefi/actions/runs/26570490675"
    }
  ]
}