-
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0cf4066
commit 94cbce6
Showing
4 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# templates | ||
|
||
Code | ||
print(mp, pretty_names = "labels") | ||
Output | ||
# Fixed Effects | ||
Parameter | Coefficient | SE | 95% CI | z | p | ||
----------------------------------------------------------------------------------------------- | ||
(Intercept) | 8.72 | 3.45 | [ 1.95, 15.48] | 2.52 | 0.012 | ||
elder's dependency [slightly dependent] | -1.00 | 3.61 | [-8.08, 6.08] | -0.28 | 0.782 | ||
elder's dependency [moderately dependent] | 2.68 | 3.06 | [-3.32, 8.68] | 0.88 | 0.381 | ||
elder's dependency [severely dependent] | 3.88 | 3.00 | [-2.01, 9.77] | 1.29 | 0.197 | ||
carer's level of education | 1.14 | 0.90 | [-0.62, 2.90] | 1.27 | 0.204 | ||
Message | ||
Uncertainty intervals (equal-tailed) and p-values (two-tailed) computed | ||
using a Wald z-distribution approximation. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
skip_if_not_installed("AER") | ||
skip_if_not_installed("datawizard") | ||
|
||
test_that("templates", { | ||
data(efc, package = "datawizard") | ||
model <- AER::tobit(neg_c_7 ~ e42dep + c172code, data = efc) | ||
mp <- model_parameters(model) | ||
expect_snapshot(print(mp, pretty_names = "labels")) | ||
}) |