-
-
Notifications
You must be signed in to change notification settings - Fork 40
equivalence_test() for modelbased-objects
#1171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
9ae21f9
2060ad8
6751ece
055c2df
e31fde8
f1cc5cd
e3a868e
f8e2413
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| # model_parameters ---------------- | ||
|
|
||
| #' @export | ||
| model_parameters.estimate_means <- function(model, ...) { | ||
| out <- model | ||
| class(out) <- c("parameters_model", "see_parameters_model", class(out)) | ||
| out | ||
| } | ||
|
|
||
| #' @export | ||
| model_parameters.estimate_slopes <- model_parameters.estimate_means | ||
|
|
||
| #' @export | ||
| model_parameters.estimate_contrasts <- model_parameters.estimate_means | ||
|
|
||
|
|
||
| # standard_error ---------------- | ||
|
|
||
| #' @export | ||
| standard_error.estimate_means <- function(model, ...) { | ||
| params <- insight::get_parameters(model) | ||
| data.frame(Parameter = params$Parameter, SE = model$SE, stringsAsFactors = FALSE) | ||
| } | ||
|
|
||
| #' @export | ||
| standard_error.estimate_slopes <- standard_error.estimate_means | ||
|
|
||
| #' @export | ||
| standard_error.estimate_contrasts <- standard_error.estimate_means | ||
|
|
||
|
|
||
| # ci ---------------- | ||
|
|
||
| #' @export | ||
| ci.estimate_means <- function(x, ...) { | ||
| params <- insight::get_parameters(x) | ||
|
|
||
| ci_value <- attributes(x)$ci | ||
| if (is.null(ci_value)) { | ||
| ci_value <- 0.95 | ||
| } | ||
|
|
||
| data.frame( | ||
| Parameter = params$Parameter, | ||
| CI = ci_value, | ||
| CI_low = x$CI_low, | ||
| CI_high = x$CI_high, | ||
| stringsAsFactors = FALSE | ||
| ) | ||
| } | ||
|
|
||
| #' @export | ||
| ci.estimate_slopes <- ci.estimate_means | ||
|
|
||
| #' @export | ||
| ci.estimate_contrasts <- ci.estimate_means |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -319,6 +319,7 @@ mgcv | |
| mhurdle | ||
| mlogit | ||
| mmrm | ||
| modelbased | ||
| modelsummary | ||
| multcomp | ||
| multicollinearity | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.