lsm
0.2.1.5Estimation of the log Likelihood of the Saturated Model
Overview
When the values of the outcome variable Y are either 0 or 1, the function lsm() calculates the estimation of the log likelihood in the saturated model. This model is characterized by Llinas (2006, ISSN:2389-8976) in section 2.3 through the assumptions 1 and 2. The function LogLik() works (almost perfectly) when the number of independent variables K is high, but for small K it calculates wrong values in some cases. For this reason, when Y is dichotomous and the data are grouped in J populations, it is recommended to use the function lsm() because it works very well for all K.
Install
Health
- OK2026-08-0513 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- NOTE2026-08-0112 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- OK2026-03-1014 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- References docs
- 91%
Downloads
Dependencies
Nothing depends on this yet.
Code & Tests
Datasets
People & History
7 releases. Pick two to compare their code metrics. R releases are shown for context.
- RR 4.6.0 released · 2026-04-24
- 0.2.1.5Latest
- RR 4.5.0 released · 2025-04-11
- 0.2.1.42024-06-08 · diff ↗
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- 0.2.1.22022-02-04 · diff ↗
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- 0.2.02020-03-07 · diff ↗
- 0.1.92020-01-15 · diff ↗
- RR 3.6.0 released · 2019-04-26
- 0.1.82018-08-30 · diff ↗
- RR 3.5.0 released · 2018-04-23
- 0.1.62018-04-09
Show 1 earlier events
- RR 3.4.0 released · 2017-04-21
Package metadata
- First published
- 2018-04-09
- Total releases
- 7 / 8 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 3.5.0
- Bundled data
- 66 KB / 6 files
- Download size
- 88 KB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet
Cite
Cite this package
Start here. This is the citation for the package itself.
citation("lsm")CRAN DOI
https://doi.org/10.32614/CRAN.package.lsmBibTeX, derived from DESCRIPTION
@Manual{lsm,
title = {lsm: Estimation of the log Likelihood of the Saturated Model},
author = {Villalba, Jorge and Fabregas, Omar and Llinas, Humberto},
year = {2025},
note = {R package version 0.2.1.5},
doi = {10.32614/CRAN.package.lsm},
url = {https://CRAN.R-project.org/package=lsm}
}Derived from the package DESCRIPTION, not from a citation file the authors wrote. If they publish one later, prefer it.
This is the citation for the package. It is not a citation for the R Observatory.
Cite this page
Use this when the claim is about a measurement on this page.
BibTeX
@misc{robservatorylsm,
author = {Balamuta, James Joseph},
title = {{R} {Observatory}: Metrics for {lsm} version 0.2.1.5},
year = {2026},
publisher = {HJJB, LLC},
url = {https://r-observatory.thecoatlessprofessor.com/packages/lsm},
note = {Data set. Data release v2026-08-05}
}APA
Balamuta, J. J. (2026). R Observatory: Metrics for lsm version 0.2.1.5 [Data set]. HJJB, LLC. Data release v2026-08-05. https://r-observatory.thecoatlessprofessor.com/packages/lsmRIS
TY - DATA
AU - Balamuta, James Joseph
TI - R Observatory: Metrics for lsm version 0.2.1.5
PY - 2026
PB - HJJB, LLC
N1 - Data release v2026-08-05
UR - https://r-observatory.thecoatlessprofessor.com/packages/lsm
ER - In prose
These package metrics were obtained from the R Observatory (Balamuta, 2026), data release v2026-08-05, https://r-observatory.thecoatlessprofessor.com/packages/lsm.Bound to data release v2026-08-05, which is what makes the numbers on this page reproducible. See how to cite.