Skip to content

Commit

Permalink
Correction to mira code
Browse files Browse the repository at this point in the history
  • Loading branch information
rvlenth committed May 28, 2024
1 parent 3af99bb commit decccfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/multiple-models.R
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ emm_basis.mira = function(object, trms, xlev, grid, ...) {
b = sum(a * (B %*% a))
t = sum(a * (T %*% a))
lambda = (1 + 1/m) * b / t
dfold = (m - 1)/lambda*2
dfold = (m - 1)/lambda^2
dfobs = (dfcom + 1)/(dfcom + 3) * dfcom * (1 - lambda)
ifelse(is.infinite(dfcom), dfold,
dfold * dfobs/(dfold + dfobs))
Expand Down

0 comments on commit decccfe

Please sign in to comment.