Skip to content

Commit d0e4ba0

Browse files
authored
Draft FPC (#1193)
* Draft FPC * fix * error * add FPC docs * doc, add credits * fix * fix, add test * fix * news * make it S3 * add more classes * add default * fixes * document method * news * Use Matrix transpose, avoid as.matrix if possible * cleanup * docs * fix * fix tests * alloe glmmTMB non mixed * check no longer needed * fix * simplify script for test, add test for KR
1 parent 636b9d3 commit d0e4ba0

18 files changed

Lines changed: 755 additions & 121 deletions

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Type: Package
22
Package: insight
33
Title: Easy Access to Model Information for Various Model Objects
4-
Version: 1.5.0.9
4+
Version: 1.5.0.10
55
Authors@R:
66
c(person(given = "Daniel",
77
family = "Lüdecke",

NAMESPACE

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1889,6 +1889,11 @@ S3method(text_remove_backticks,matrix)
18891889
S3method(trim_ws,data.frame)
18901890
S3method(trim_ws,default)
18911891
S3method(trim_ws,list)
1892+
S3method(vcovFPC,default)
1893+
S3method(vcovFPC,glm)
1894+
S3method(vcovFPC,glmmTMB)
1895+
S3method(vcovFPC,lm)
1896+
S3method(vcovFPC,merMod)
18921897
export(all_models_equal)
18931898
export(all_models_same_class)
18941899
export(broom_columns)
@@ -2015,3 +2020,4 @@ export(supported_models)
20152020
export(text_remove_backticks)
20162021
export(trim_ws)
20172022
export(validate_argument)
2023+
export(vcovFPC)

NEWS.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@
1818

1919
* `get_data()` now supports objects of class `mira` from package *mice*.
2020

21+
* `get_varcov()` now supports the option `"fpc"` to apply finite population
22+
correction (Lai et al. 2018).
23+
24+
* Added a new function, `vcovFPC()`, to calculate finite-population-adjusted
25+
variance-covariance matrices.
26+
2127
## Bug fixes
2228

2329
* `has_intercept()` now correctly detects whether models from packages *fixest*

R/get_df.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@
6666
#' and between-cluster effects. Note that this implementation does not return
6767
#' exactly the same results as shown in _Li and Redden 2015_, but similar.
6868
#'
69-
#' *Satterthwaite and Kenward-Rogers degrees of freedom*
69+
#' *Satterthwaite and Kenward-Roger degrees of freedom*
7070
#'
7171
#' Unlike simpler approximation heuristics like the "m-l-1" rule (`type = "ml1"`),
72-
#' the Satterthwaite or Kenward-Rogers approximation is also applicable in more
72+
#' the Satterthwaite or Kenward-Roger approximation is also applicable in more
7373
#' complex multilevel designs. However, the "m-l-1" or "between-within" heuristics
7474
#' also apply to generalized mixed models, while approaches like Kenward-Roger
7575
#' or Satterthwaite are limited to linear mixed models only.

0 commit comments

Comments
 (0)