Last updated on 2022-08-15 08:50:01 CEST.
Flavor | Version | Tinstall | Tcheck | Ttotal | Status | Flags |
---|---|---|---|---|---|---|
r-devel-linux-x86_64-debian-clang | 0.8.1 | 5.43 | 127.24 | 132.67 | ERROR | |
r-devel-linux-x86_64-debian-gcc | 0.8.1 | 3.72 | 96.24 | 99.96 | ERROR | |
r-devel-linux-x86_64-fedora-clang | 0.8.1 | 164.36 | ERROR | |||
r-devel-linux-x86_64-fedora-gcc | 0.8.1 | 174.53 | ERROR | |||
r-devel-windows-x86_64 | 0.8.1 | 47.00 | 136.00 | 183.00 | ERROR | |
r-patched-linux-x86_64 | 0.8.1 | 5.74 | 123.60 | 129.34 | ERROR | |
r-release-linux-x86_64 | 0.8.1 | 4.98 | 124.09 | 129.07 | ERROR | |
r-release-macos-arm64 | 0.8.1 | 50.00 | ERROR | |||
r-release-macos-x86_64 | 0.8.1 | 55.00 | OK | |||
r-release-windows-x86_64 | 0.8.1 | 61.00 | 123.00 | 184.00 | ERROR | |
r-oldrel-macos-arm64 | 0.8.1 | 39.00 | OK | |||
r-oldrel-macos-x86_64 | 0.8.1 | 56.00 | OK | |||
r-oldrel-windows-ix86+x86_64 | 0.8.1 | 9.00 | 124.00 | 133.00 | ERROR |
Version: 0.8.1
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
>
> if (require("emmeans")) {
+ # Get an idea of the data
+ if (require("ggplot2")) {
+ 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
+ if (require("see")) {
+ plot(slopes)
+ }
+ standardize(slopes)
+
+ if (require("mgcv") && require("see")) {
+ 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)
+ }
+ }
Loading required package: emmeans
Loading required package: ggplot2
Loading required package: see
Loading required package: mgcv
Loading required package: nlme
This is mgcv 1.8-40. For overview type 'help("mgcv-package")'.
No numeric variable was specified for slope estimation. Selecting `trend = "Petal.Length"`.
Error in emmeans::emtrends(model, specs = args$emmeans_specs, var = args$trend, :
Variable 'Petal.Length' is not in the dataset
Calls: estimate_slopes -> get_emtrends -> <Anonymous>
Execution halted
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-patched-linux-x86_64, r-release-linux-x86_64
Version: 0.8.1
Check: examples
Result: ERROR
Running examples in ‘modelbased-Ex.R’ failed
The error most likely occurred in:
> ### Name: estimate_slopes
> ### Title: Estimate Marginal Effects
> ### Aliases: estimate_slopes
>
> ### ** Examples
>
> if (require("emmeans")) {
+ # Get an idea of the data
+ if (require("ggplot2")) {
+ 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
+ if (require("see")) {
+ plot(slopes)
+ }
+ standardize(slopes)
+
+ if (require("mgcv") && require("see")) {
+ 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)
+ }
+ }
Loading required package: emmeans
Loading required package: ggplot2
Loading required package: see
Loading required package: mgcv
Loading required package: nlme
This is mgcv 1.8-40. For overview type 'help("mgcv-package")'.
No numeric variable was specified for slope estimation. Selecting `trend = "Petal.Length"`.
Error in emmeans::emtrends(model, specs = args$emmeans_specs, var = args$trend, :
Variable 'Petal.Length' is not in the dataset
Calls: estimate_slopes -> get_emtrends -> <Anonymous>
Execution halted
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64, r-release-macos-arm64, r-release-windows-x86_64, r-oldrel-windows-ix86+x86_64