Skip to content

Commit

Permalink
partially fix 11 net survival estimation test
Browse files Browse the repository at this point in the history
  • Loading branch information
qmarcou committed Apr 23, 2024
1 parent fa587f2 commit 3f1d836
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/test-netidmtpreg_fit.R
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,8 @@ population mortality are equal",
# lower = FALSE # P(T>t)
# )
testthat::expect_equal(
object = net_estimated$co$coefficients,
expected = log(net_surv_probs / (1 - net_surv_probs)),
object = as.numeric(expit(net_estimated$co$coefficients)),
expected = net_surv_probs,
tolerance = .01
)
}
Expand Down

0 comments on commit 3f1d836

Please sign in to comment.