lmw
0.0.2Linear Model Weights
Overview
Computes the implied weights of linear regression models for estimating average causal effects and provides diagnostics based on these weights. These diagnostics rely on the analyses in Chattopadhyay and Zubizarreta (2023) doi:10.1093/biomet/asac058 where several regression estimators are represented as weighting estimators, in connection to inverse probability weighting. 'lmw' provides tools to diagnose representativeness, balance, extrapolation, and influence for these models, clarifying the target population of inference. Tools are also available to simplify estimating treatment effects for specific target populations of interest.
Install
Health
- 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
- 27%
Downloads
Repository
Stars over time
Repository practices
2 development-tooling and community-health practices detected across 2 families in the upstream repository
Checks run against github.com/ngreifer/lmw on 2026-07-19.
Dependencies
Nothing depends on this yet.
Code & Tests
- Cyclomatic complexity
- 5.5 median / 36 max
Test coverage
Line coverage
–
Expression
–
Tests / Examples
–
Functions
84 3 exported
Complexity
8.2 avg / 36 max
Call network
84 nodes / 135 edges
Call graph
Open call graph →Lowest coverage
Per-function coverage is not measured for this package yet.
Datasets
| Name | Class | Rows × Cols | Also ships in |
|---|---|---|---|
| lalonde | data.frame | 2,675 × 11 | – |
People & History
2 releases. Pick two to compare their code metrics. R releases are shown for context.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 0.0.2Latest
- RR 4.3.0 released · 2023-04-21
- 0.0.12023-03-14
- RR 4.2.0 released · 2022-04-22
Package metadata
- First published
- 2023-03-14
- Total releases
- 2 / 3 yrs
- License
- GPL (>= 2) OSI
- Minimum R
- ≥ 3.5.0
- Bundled data
- 21 KB / 1 file
- Download size
- 268 KB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet