Changelog
Source:NEWS.md
governance 0.2.0
Breaking changes
-
gov_scoreis now the governance index: the score from a unidimensional graded response model (gov_index_2023), reported on a scale with mean 100 and standard deviation 15 among 2023 501(c)(3) full-990 filers. It runs from about 67 (none of the 16 practices) to about 128 (all 16), andgov_score_seis in index points.- In the 2023 bifactor model, a score could fall when an organization reported another practice. Adding committee minutes, for example, lowered the general score for most organizations that lacked them.
- The index model scores each bundle of nested practices as one ordinal item: financial assurance, conflict-of-interest policy, minutes, and pay-setting process. With one dimension, adding a practice can only raise the score.
- It correlates .99 with the bifactor general score, and its reliability is .82.
- The bifactor general score from version 0.1.0 is still returned, as
gov_score_bf. Thegov_s_*specific-factor scores are unchanged.get_scores(model = "2023")now appends nine columns instead of eight.
New features
-
gov_index_2023: parameters, item bundles, scaling constants and fit of the index model, with fitting code indata-raw/fit-index-2023.R.
Documentation
-
get_scores()and the vignettes describe the index:- its scale and how to interpret it;
- the points each practice adds;
- its precision and its limitations, including the ceiling at about 128.
- Vignettes:
- “Making Governance Scores” explains why the published score is not the bifactor score.
- The overview is rebuilt on the new scale.
-
get_scores()and the vignettes report how reliable the specific-factor scores are and advise against usinggov_s_policy. That factor has almost no variance of its own (omega-hierarchical < .01), because the written-policy items are the core of the general factor.gov_s_financeis the one subscore recommended alongside the index.
governance 0.1.0
Breaking changes
-
get_scores()now applies the 2023 governance index model by default. It is a bifactor item response model fit to all 501(c)(3) full Form 990 filers for tax year 2023, and returns:-
gov_score, with its standard errorgov_score_se; - four specific-factor scores (
gov_s_finance,gov_s_minutes,gov_s_policy,gov_s_comp); -
gov_count(number of the 16 practices reported) andgov_n_items.
gov_model_2023), so scores from other years share the 2023 scale. The previous six-factor model and itstotal.scoreare still available withget_scores(x, model = "legacy-2018"). -
-
mirtis now a dependency.
New features
-
get_features()also returns the 16GI_*practice items used by the 2023 model. They add the audit committee (Part XII line 2c), compilation or review, committee minutes, and the pay process for other officers, and keep the conflict-of-interest disclosure and monitoring items separate. -
get_features()also returns fiveRISK_*indicators: insider transactions, loans to insiders, family or business ties, management company, and asset diversion. - Missing fields used only by the 2023 items produce a message, not an error.
-
get_governance_data()retrieves the additional fields, anddat_exampleincludes them. -
data-raw/fit-model-2023.Rreproduces the shipped model from the efile archive.
Documentation
- New article, “Governance Across the Sector” (
vignette("overview")): practice prevalence and governance scores for every 501(c)(3) full-990 filer, broken out by size, subsector, state and organization age, with risk disclosures and change from 2021 to 2024. Its summary tables are built bydata-raw/make-overview-data.R. - “Making Governance Scores” now documents the 2023 index: population and data preparation, item selection and coding, dimensionality, the model comparison, scoring and validation (invariance and predictive validity).
- The derivation of the 2018 model and its known issues moved to a new article, “The Legacy 2018 Model”, with its tables rebuilt and several descriptions corrected.
- “Getting Started” and “Governance Workflow” describe the 16
GI_*items, theRISK_*indicators and every columnget_scores()adds. “Getting 990 Data” lists every field the 2023 items read.
Fixes
-
get_features(): audited financial statements (P4_LINE_12) now count consolidated audits (Part IV line 12b,F9_04_AFS_CONSOL_X) as well as separate audits (line 12a), matching how the factor model was trained. Previously organizations audited only on a consolidated basis scored 0.F9_04_AFS_CONSOL_Xis optional: without it, a message is shown and line 12a alone is used.get_governance_data()now retrieves the field, anddat_exampleincludes it. - Documented four known issues with the shipped factor model in the “Making Governance Scores” vignette and in
?get_scores:- the training sample excluded fully independent boards;
- a coding bug zeroed out the audit-committee item (Part XII line 2c);
-
total.scoreputs negative implied weights on several good-practice features; - six factors over-fit 12 binary items. These motivated the 2023 refit.
- Retrieval tests now read the local fixture tables as CSV, since
panel990defaults to parquet sources.
governance 0.0.1.0000
Added
get_governance_data()andget_governance_scores()to import IRS 990 efile tables through the companion panel990 package and assemble the input toget_features()(Parts IV, VI, XII and Schedule M), merged to one row per filing. Retrieval usespanel990::panelize()with a sample frame that restricts the data to full 990 filers (RETURN_TYPE == "990") via the SFWform_typefilter.Fixed a Part XII normalization bug where the accounting-method “other” case was detected with
is.na()on a free-text field that reads as""(notNA) fromdata.table::fread, causing every filer to be labeled “other” andP12_LINE_1to collapse to 0. Accrual is now detected correctly.get_features()normalization is now robust to how blank cells are encoded:NAand""yield identical features (blank yes/no responses score0).get_features()now normalizes the returnedORG_EINto a 9-digit string (previously dead code) and accepts integer and"EIN-.."forms.Member counts are coerced to numeric, so character input from
freadno longer errors on the independent-member ratio.Fixed a copy-paste bug in the missing-column checks so the error names the actual missing columns.
get_scores()now stops with a clear message if a feature column is entirelyNA, rather than returning invalid scores.psychmoved toImports.Rebuilt the bundled
dat_examplefrom the NCCS efile v2.1 archive (tax year 2022, 5,000 organizations) so the example reflects current field formats.Added a
testthattest suite covering normalization, scoring, and the fixes above.Refreshed the vignettes, README, and pkgdown reference index.
Initial CRAN submission.