Comments (2)
Good news it's not your code. Looks like you're just running out of variance for this particular example. The problem is that as you eliminate NA's there's only 4 vore = "insecti" left so when it goes to trim it generates that "(winvar(x[[grp[j]]], tr) == 0) stop("Standard error cannot be computed because of Winsorized variance of 0 (e.g., due to ties)."
library(ggstatsplot)
library(ggplot2)
# data
# ggplot2::msleep
WRS2::t1way(formula = sleep_rem ~ vore,
data = ggplot2::msleep)
#> Call:
#> WRS2::t1way(formula = sleep_rem ~ vore, data = ggplot2::msleep)
#>
#> Test statistic: F = 2.7569
#> Degrees of freedom 1: 3
#> Degrees of freedom 2: 9.37
#> p-value: 0.10159
#>
#> Explanatory measure of effect size: 0.76
ggstatsplot::subtitle_ggbetween_rob_anova(
data = ggplot2::msleep,
x = vore,
y = sleep_rem
)
#> Error in WRS2::t1way(formula = stats::as.formula(formula), data = d, tr = tr): Standard error cannot be computed because of Winsorized variance of 0 (e.g., due to ties). Try do decrease the trimming level.
# remove vore = "insecti"
xxx <- ggplot2::msleep %>% dplyr::filter(vore != "insecti")
ggstatsplot::subtitle_ggbetween_rob_anova(
data = xxx,
x = vore,
y = sleep_rem
)
#> Note: 95% CI for explanatory measure of effect size was computed with 100 bootstrap samples.
#>
#> Note: In case of error, try reducing the trimming level 0.1 and/or increasing the number of bootstrap samples 100
#>
#> paste(italic("F"), "(", 2, ",", "17.577", ") = ", "2.232", ", ",
#> italic("p"), " = ", "0.137", ", ", italic(xi), " = ", "0.370",
#> ", 95% CI [", "0.003", ", ", "0.605", "]", ", ", italic("n"),
#> " = ", 52L)
Created on 2018-09-26 by the reprex package (v0.2.1)
from ggstatsplot.
Wonderful. Thanks!
from ggstatsplot.
Related Issues (20)
- [ggbetweenstats] mtcars example: BA ($caption_data) not reported HOT 4
- ggbetweenstats: Welch's ANOVA producing NAs HOT 5
- zero-length inputs cannot be mixed with those of non-zero length with ggbetweenstats because of StatsExpression 1.5.2 HOT 3
- text = element_text(size = .) can not change sample size label size HOT 2
- package ‘ggstatsplot’ is not available (for R version 3.6.3) HOT 1
- Set group.var from string failed HOT 1
- p-value arrow-heads not being displayed in graph HOT 1
- Missing specify_decimal_p() function HOT 1
- Outlier values included within min-max range of boxplot HOT 4
- User question about dynamic names
- ggstatsplot installation issue. HOT 3
- Setting scale for histograms in ggscatterstats
- Significance is indicated by “*” instead of a specific value HOT 1
- Simpler statistical results HOT 3
- Pairwise comparisons not showing HOT 3
- "Removing" the violin plot from `ggbetweenstats` does not really remove it, but rather adds a thin line on the plot. HOT 5
- ggpiestats Cramer's V upper confidence intervals is always 1, and it shouldn't be HOT 2
- packages not installing in Rstudio HOT 1
- Invalid class "ddenseModelMatrix" object HOT 1
- Error in `filter()`: ! In argument: `!is.na(x)`. Caused by error: HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ggstatsplot.