-
-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Indrajeet Patil <[email protected]> Co-authored-by: rempsyc <[email protected]>
- Loading branch information
1 parent
c09c190
commit 7ff3e57
Showing
42 changed files
with
1,284 additions
and
1,302 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,4 @@ | ||
if (require("testthat", quietly = TRUE)) { | ||
library(performance) | ||
library(testthat) | ||
library(performance) | ||
|
||
is_dev_version <- length(strsplit(packageDescription("performance")$Version, "\\.")[[1]]) > 3L | ||
if (is_dev_version) { | ||
Sys.setenv("RunAllperformanceTests" = "yes") | ||
} else { | ||
Sys.setenv("RunAllperformanceTests" = "no") | ||
} | ||
|
||
test_check("performance") | ||
} | ||
test_check("performance") |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# check_collinearity, ci = NULL | ||
|
||
Code | ||
print(out) | ||
out | ||
Output | ||
# Check for Multicollinearity | ||
|
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,22 @@ | ||
# model_performance | ||
|
||
Code | ||
model_performance(mod_mb) | ||
Output | ||
# Indices of model performance | ||
AIC | BIC | Nagelkerke's R2 | RMSE | Sigma | ||
------------------------------------------------- | ||
38.823 | 47.618 | 0.836 | 0.298 | 1.016 | ||
|
||
--- | ||
|
||
Code | ||
model_performance(mod_mc) | ||
Output | ||
# Indices of model performance | ||
AIC | BIC | Nagelkerke's R2 | RMSE | Sigma | ||
------------------------------------------------- | ||
13.228 | 24.424 | 0.998 | 0.009 | 0.068 | ||
|
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# check_outliers.rma | ||
|
||
Code | ||
print(out) | ||
out | ||
Output | ||
2 outliers detected: studies 4 (Hart & Sutherland) and 8 (TPT Madras). | ||
|
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,11 @@ | ||
# Issue #530 from the `modelsummary` repo | ||
|
||
Code | ||
out | ||
Output | ||
# Indices of model performance | ||
AIC | BIC | R2 | R2 (adj.) | RMSE | Sigma | Wu & Hausman | p (Wu_Hausman) | Weak instruments | p (weak_instruments) | ||
------------------------------------------------------------------------------------------------------------------------------- | ||
182.692 | 191.486 | 0.655 | 0.604 | 3.484 | 3.793 | 13.869 | < .001 | 19.958 | < .001 | ||
|
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.