Skip to content

lsm

Estimation of the log Likelihood of the Saturated Model

v0.2.1.5 · Jun 2, 2025 · MIT + file LICENSE

Description

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.

Downloads

281

Last 30 days

14851st

745

Last 90 days

3.2K

Last year

Trend: +13.8% (30d vs prior 30d)

CRAN Check Status

14 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Dependency Network

Dependencies Reverse dependencies dplyr ggplot2 lsm

Version History

new 0.2.1.5 Mar 10, 2026
updated 0.2.1.5 ← 0.2.1.4 diff Jun 1, 2025
updated 0.2.1.4 ← 0.2.1.2 diff Jun 7, 2024
updated 0.2.1.2 ← 0.2.0 diff Feb 3, 2022
updated 0.2.0 ← 0.1.9 diff Mar 6, 2020
updated 0.1.9 ← 0.1.8 diff Jan 14, 2020
updated 0.1.8 ← 0.1.6 diff Aug 29, 2018
new 0.1.6 Apr 8, 2018