civ
0.1.0Categorical Instrumental Variables
Overview
Implementation of the categorical instrumental variable (CIV) estimator proposed by Wiemann (2023) arXiv:2311.17021. CIV allows for optimal instrumental variable estimation in settings with relatively few observations per category. To obtain valid inference in these challenging settings, CIV leverages a regularization assumption that implies existence of a latent categorical variable with fixed finite support achieving the same first stage fit as the observed instrument.
Install
Health
- NOTE r-devel-linux-x86_64-debian-clang
- NOTE r-devel-linux-x86_64-debian-gcc
- NOTE2026-06-0911 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- ERROR2026-06-0811 OK · 1 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
- NOTE2026-03-1012 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- References docs
- 100%
Downloads
Repository
Stars over time
Releases over time
Issues over time
PRs over time
Repository practices
6 development-tooling and community-health practices detected across 6 families in the upstream repository
Checks run against github.com/thomaswiemann/civ on 2026-07-19.
Show all practices
Dependencies
Nothing depends on this yet.
Code & Tests
- Cyclomatic complexity
- 1.5 median / 2 max
- Test cases
- 2 / 0.55 per code line
Test coverage
Line coverage
100%
Expression
100.0%
Tests / Examples
100.0% / 93% ex
Functions
2 1 exported
Complexity
1.5 avg / 2 max
Call network
2 nodes / 0 edges
Call graph
Open call graph →Lowest coverage
2 functions| Function | Cyclo | Coverage |
|---|---|---|
| civ exp | 2 | 100% |
| summary.civ | 1 | 100% |
People & History
1 release. R releases are shown for context.
- RR 4.6.0 released · 2026-04-24
- 0.1.0Latest2026-03-10 · current release
- RR 4.5.0 released · 2025-04-11
Package metadata
- First published
- 2023-12-08
- Total releases
- 1 / 3 yrs
- License
- GPL (>= 3) OSI
- Minimum R
- ≥ 3.6
- Download size
- 33 KB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet