Last updated on 2024-06-15 15:49:31 CEST.
Package | ERROR | NOTE | OK |
---|---|---|---|
bayestestR | 1 | 12 | |
modelbased | 4 | 9 | |
psycho | 10 | 3 |
Current CRAN status: NOTE: 1, OK: 12
Version: 0.13.2
Check: package dependencies
Result: NOTE
Package suggested but not available for checking: ‘blavaan’
Flavor: r-patched-linux-x86_64
Current CRAN status: ERROR: 4, OK: 9
Version: 0.8.8
Flags: --no-examples --no-tests --no-vignettes
Check: whether package can be installed
Result: ERROR
Installation failed.
Flavor: r-devel-windows-x86_64
Version: 0.8.7
Check: examples
Result: ERROR
Running examples in ‘modelbased-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: estimate_slopes
> ### Title: Estimate Marginal Effects
> ### Aliases: estimate_slopes
>
> ### ** Examples
>
> ## Don't show:
> if (require("emmeans") && require("ggplot2") && require("see")) (if (getRversion() >= "3.4") withAutoprint else force)({ # examplesIf
+ ## End(Don't show)
+ # Get an idea of the data
+ ggplot(iris, aes(x = Petal.Length, y = Sepal.Width)) +
+ geom_point(aes(color = Species)) +
+ geom_smooth(color = "black", se = FALSE) +
+ geom_smooth(aes(color = Species), linetype = "dotted", se = FALSE) +
+ geom_smooth(aes(color = Species), method = "lm", se = FALSE)
+
+ # Model it
+ model <- lm(Sepal.Width ~ Species * Petal.Length, data = iris)
+ # Compute the marginal effect of Petal.Length at each level of Species
+ slopes <- estimate_slopes(model, trend = "Petal.Length", at = "Species")
+ slopes
+
+ # Plot it
+ plot(slopes)
+
+ standardize(slopes)
+ ## Don't show:
+ }) # examplesIf
Loading required package: emmeans
Welcome to emmeans.
Caution: You lose important information if you filter this package's results.
See '? untidy'
Loading required package: ggplot2
Loading required package: see
> ggplot(iris, aes(x = Petal.Length, y = Sepal.Width)) + geom_point(aes(color = Species)) +
+ geom_smooth(color = "black", se = FALSE) + geom_smooth(aes(color = Species),
+ linetype = "dotted", se = FALSE) + geom_smooth(aes(color = Species), method = "lm",
+ se = FALSE)
`geom_smooth()` using method = 'loess' and formula = 'y ~ x'
`geom_smooth()` using method = 'loess' and formula = 'y ~ x'
`geom_smooth()` using formula = 'y ~ x'
> model <- lm(Sepal.Width ~ Species * Petal.Length, data = iris)
> slopes <- estimate_slopes(model, trend = "Petal.Length", at = "Species")
Warning: Argument `at` is deprecated and will be removed in a future release.
Please use `by` instead.
> slopes
Estimated Marginal Effects
Species | Coefficient | SE | 95% CI | t(144) | p
-----------------------------------------------------------------
setosa | 0.39 | 0.26 | [-0.13, 0.90] | 1.49 | 0.138
versicolor | 0.37 | 0.10 | [ 0.18, 0.56] | 3.89 | < .001
virginica | 0.23 | 0.08 | [ 0.07, 0.40] | 2.86 | 0.005
Marginal effects estimated for Petal.Length> plot(slopes)
> standardize(slopes)
Estimated Marginal Effects (standardized)
Species | Coefficient | SE | 95% CI | t(144) | p
-----------------------------------------------------------------
setosa | 0.89 | 0.60 | [-0.29, 2.07] | 1.49 | 0.138
versicolor | 0.86 | 0.22 | [ 0.42, 1.29] | 3.89 | < .001
virginica | 0.54 | 0.19 | [ 0.17, 0.91] | 2.86 | 0.005
Marginal effects estimated for Petal.Length> ## End(Don't show)
> ## Don't show:
> if (require("mgcv") && require("emmeans") && require("see")) (if (getRversion() >= "3.4") withAutoprint else force)({ # examplesIf
+ ## End(Don't show)
+ model <- mgcv::gam(Sepal.Width ~ s(Petal.Length), data = iris)
+ slopes <- estimate_slopes(model, at = "Petal.Length", length = 50)
+ summary(slopes)
+ plot(slopes)
+
+ model <- mgcv::gam(Sepal.Width ~ s(Petal.Length, by = Species), data = iris)
+ slopes <- estimate_slopes(model,
+ trend = "Petal.Length",
+ at = c("Petal.Length", "Species"), length = 20
+ )
+ summary(slopes)
+ plot(slopes)
+ ## Don't show:
+ }) # examplesIf
Loading required package: mgcv
Loading required package: nlme
This is mgcv 1.9-1. For overview type 'help("mgcv-package")'.
> model <- mgcv::gam(Sepal.Width ~ s(Petal.Length), data = iris)
> slopes <- estimate_slopes(model, at = "Petal.Length", length = 50)
No numeric variable was specified for slope estimation. Selecting `trend = "Petal.Length"`.
Warning: Argument `at` is deprecated and will be removed in a future release.
Please use `by` instead.
> summary(slopes)
Warning: Function `data_find()` is deprecated and will be removed in a future
release. Please use `extract_column_names()` instead.
Killed
Flavor: r-release-linux-x86_64
Version: 0.8.7
Check: tests
Result: ERROR
Running ‘testthat.R’ [425s/497s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> # This file is part of the standard setup for testthat.
> # It is recommended that you do not modify it.
> #
> # Where should you do additional test configuration?
> #
> # * https://r-pkgs.org/tests.html
> # * https://testthat.r-lib.org/reference/test_package.html#special-files
> library(testthat)
> library(modelbased)
>
> test_check("modelbased")
Starting 2 test processes
[ FAIL 9 | WARN 103 | SKIP 2 | PASS 160 ]
══ Skipped tests (2) ═══════════════════════════════════════════════════════════
• .Platform$OS.type == "windows" is not TRUE (1):
'test-estimate_predicted.R:56:3'
• empty test (1): 'test-estimate_contrasts.R:188:1'
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-estimate_contrasts.R:28:3'): estimate_contrasts - Frequentist ──
dim(estim) (`actual`) not equal to c(3, 10) (`expected`).
`actual`: 6 10
`expected`: 3 10
── Failure ('test-estimate_contrasts.R:35:3'): estimate_contrasts - Frequentist ──
dim(estim) (`actual`) not equal to c(3, 10) (`expected`).
`actual`: 30 10
`expected`: 3 10
── Failure ('test-estimate_contrasts.R:58:3'): estimate_contrasts - Frequentist ──
dim(estim) (`actual`) not equal to c(6, 10) (`expected`).
`actual`: 18 10
`expected`: 6 10
── Failure ('test-estimate_contrasts.R:74:3'): estimate_contrasts - Frequentist ──
dim(estim) (`actual`) not equal to c(6, 10) (`expected`).
`actual`: 12 10
`expected`: 6 10
── Failure ('test-estimate_contrasts.R:136:3'): estimate_contrasts - Bayesian ──
dim(estim) (`actual`) not equal to c(3, 8) (`expected`).
`actual`: 6 8
`expected`: 3 8
── Failure ('test-estimate_contrasts.R:150:3'): estimate_contrasts - Bayesian ──
dim(estim) (`actual`) not equal to c(3, 8) (`expected`).
`actual`: 30 8
`expected`: 3 8
── Failure ('test-estimate_means.R:97:3'): estimate_means() - core ─────────────
dim(estim) (`actual`) not equal to c(3, 6) (`expected`).
`actual`: 30 6
`expected`: 3 6
── Failure ('test-estimate_means.R:134:3'): estimate_means() - core ────────────
dim(estim) (`actual`) not equal to c(6, 7) (`expected`).
`actual`: 12 7
`expected`: 6 7
── Failure ('test-estimate_means.R:148:3'): estimate_means() - core ────────────
dim(estim) (`actual`) not equal to c(4, 7) (`expected`).
`actual`: 8 7
`expected`: 4 7
[ FAIL 9 | WARN 103 | SKIP 2 | PASS 160 ]
Error: Test failures
Execution halted
Flavor: r-release-linux-x86_64
Version: 0.8.8
Check: package dependencies
Result: ERROR
Packages required and available but unsuitable versions:
'datawizard', 'performance'
See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’
manual.
Flavors: r-oldrel-macos-arm64, r-oldrel-macos-x86_64
Current CRAN status: NOTE: 10, OK: 3
Version: 0.6.1
Check: Rd files
Result: NOTE
checkRd: (-1) dprime.Rd:37: Lost braces in \itemize; \value handles \item{}{} directly
checkRd: (-1) dprime.Rd:38: Lost braces in \itemize; \value handles \item{}{} directly
checkRd: (-1) dprime.Rd:39: Lost braces in \itemize; \value handles \item{}{} directly
checkRd: (-1) dprime.Rd:40: Lost braces in \itemize; \value handles \item{}{} directly
checkRd: (-1) dprime.Rd:41: Lost braces in \itemize; \value handles \item{}{} directly
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-patched-linux-x86_64, r-release-linux-x86_64, r-release-macos-arm64, r-release-macos-x86_64
Version: 0.6.1
Flags: --no-vignettes
Check: Rd files
Result: NOTE
checkRd: (-1) dprime.Rd:37: Lost braces in \itemize; \value handles \item{}{} directly
checkRd: (-1) dprime.Rd:38: Lost braces in \itemize; \value handles \item{}{} directly
checkRd: (-1) dprime.Rd:39: Lost braces in \itemize; \value handles \item{}{} directly
checkRd: (-1) dprime.Rd:40: Lost braces in \itemize; \value handles \item{}{} directly
checkRd: (-1) dprime.Rd:41: Lost braces in \itemize; \value handles \item{}{} directly
Flavors: r-devel-windows-x86_64, r-release-windows-x86_64