lsm: Estimation of the log Likelihood of the Saturated Model

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.

Depends: R (≥ 3.5.0)
Imports: stats, dplyr (≥ 1.0.0), ggplot2 (≥ 1.0.0)
Published: 2024-06-08
DOI: 10.32614/CRAN.package.lsm
Author: Jorge Villalba ORCID iD [aut, cre], Humberto Llinas ORCID iD [aut], Omar Fabregas ORCID iD [aut]
Maintainer: Jorge Villalba <jvillalba at>
License: MIT + file LICENSE
NeedsCompilation: yes
Citation: lsm citation info
Materials: README
CRAN checks: lsm results


Reference manual: lsm.pdf


Package source: lsm_0.2.1.4.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): lsm_0.2.1.4.tgz, r-oldrel (arm64): lsm_0.2.1.4.tgz, r-release (x86_64): lsm_0.2.1.4.tgz, r-oldrel (x86_64): lsm_0.2.1.4.tgz
Old sources: lsm archive


Please use the canonical form to link to this page.