rstatix | Pipe-friendly Framework for Basic Statistical Tests in R | Analytics library

 by   kassambara R Version: v0.7.2 License: No License

kandi X-RAY | rstatix Summary

kandi X-RAY | rstatix Summary

rstatix is a R library typically used in Analytics applications. rstatix has no bugs, it has no vulnerabilities and it has low support. You can download it from GitHub.

Provides a simple and intuitive pipe-friendly framework, coherent with the ‘tidyverse’ design philosophy, for performing basic statistical tests, including t-test, Wilcoxon test, ANOVA, Kruskal-Wallis and correlation analyses. The output of each test is automatically transformed into a tidy data frame to facilitate visualization. Additional functions are available for reshaping, reordering, manipulating and visualizing correlation matrix. Functions are also included to facilitate the analysis of factorial experiments, including purely ‘within-Ss’ designs (repeated measures), purely ‘between-Ss’ designs, and mixed ‘within-and-between-Ss’ designs. It’s also possible to compute several effect size metrics, including “eta squared” for ANOVA, “Cohen’s d” for t-test and “Cramer’s V” for the association between categorical variables. The package contains helper functions for identifying univariate and multivariate outliers, assessing normality and homogeneity of variances.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              rstatix has a low active ecosystem.
              It has 382 star(s) with 49 fork(s). There are 17 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 97 open issues and 78 have been closed. On average issues are closed in 82 days. There are 6 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of rstatix is v0.7.2

            kandi-Quality Quality

              rstatix has 0 bugs and 0 code smells.

            kandi-Security Security

              rstatix has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              rstatix code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              rstatix does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              rstatix releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.
              It has 16060 lines of code, 0 functions and 85 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of rstatix
            Get all kandi verified functions for this library.

            rstatix Key Features

            No Key Features are available at this moment for rstatix.

            rstatix Examples and Code Snippets

            No Code Snippets are available at this moment for rstatix.

            Community Discussions

            QUESTION

            How to implement "broom" package in R
            Asked 2022-Apr-17 at 08:41

            I have an issue that might be silly in some ways, but following this question:

            Linear Regression and group by in R

            I tried to install the broom package in order to "retrieve the coefficients and Rsquared/p.value".

            I know that the previous question is 12 years old but this package is still listed in my RStudio for installation, but then I have this error message and I am lost on what to do to make it work properly:

            library(broom) Error in value[3L]: Package 'broom' version 0.7.12 cannot be loaded: Error in unloadNamespace(package): namespace 'broom' is imported by 'modelr', 'tidyverse', 'rstatix' and therefore cannot be unloaded

            So my question is straightforward: what does it mean? Did broom become a dependancy of the 3 packages cited? How to make it work?

            Thank you very much for your help.

            EDIT: screenshot of the output to know why some numbers appear in red.

            ...

            ANSWER

            Answered 2022-Apr-17 at 08:28

            Given your comments, you should be able to purrr::map broom::tidy over your list column of models.

            Source https://stackoverflow.com/questions/71900132

            QUESTION

            Identifying several variable outliers with rstatix
            Asked 2022-Mar-24 at 08:47

            Here is the dput for the data I have. I have only included the head of the data because this is a pretty massive dataset, but I think it should suffice given my question:

            ...

            ANSWER

            Answered 2022-Mar-24 at 08:47

            The beauty of rstatix is that it is pipe friendly. So, you can use it with tidyverse framework. tidyverse requires the data in long-form. You can use the following code

            Source https://stackoverflow.com/questions/71597008

            QUESTION

            In R, how can I adjust the number of significant digits in stat_pvalue_manual()?
            Asked 2022-Mar-13 at 19:58

            The function stat_pvalue_manual() will add p-values to boxplots using ggboxplot. However, the p-values that are printed are sometimes many digits long. I would like to limit the number of decimal places to 3. How can I do that?

            From the plot below you will see that the p-value for versicolor and virginica is 5 decimal places, how can I adjust the code below to report back 3 decimal places (i.e., 0.009)?

            ...

            ANSWER

            Answered 2022-Mar-13 at 19:58

            You could uselabel = "p = {scales::pvalue(p.adj)}"

            Source https://stackoverflow.com/questions/71460270

            QUESTION

            cannot install R package: CMake errorr
            Asked 2022-Mar-09 at 11:00

            I am trying to install factoextra, but I gets stuck during the CMake part, in particular with error like:

            CMake Error: The source directory "/tmp/..." does not exist.

            (same when I try to install its dependencies: nloptr, pbkrtest, lme4, car, rstatix, FactoMineR, ggpubr )

            any idea?

            thanks

            ps:

            • R version 4.0.0
            • centos 7

            last part of logs:

            ...

            ANSWER

            Answered 2022-Mar-08 at 22:50

            I solved this problem by sudo apt-get install libnlopt-dev.

            Source https://stackoverflow.com/questions/71250259

            QUESTION

            Remove trendline from ANCOVA plot in ggplot
            Asked 2022-Feb-04 at 00:07

            I am doing a one-way ANCOVA analysis on root colonisation data using the following example https://www.datanovia.com/en/lessons/ancova-in-r/. I am trying to remove the trendline from the resulting plot as my treatments are separate groups so I don't think it is necessary. I have tried using each of the following but I can't get any to work with this code. Is there another way I can go about this? Thanks!

            ...

            ANSWER

            Answered 2022-Feb-04 at 00:07

            One possible way you could cheat this is by making it a boxplot instead and using the error bar as the IQR that surrounds the median. The problem is that your option uses ggline, which usually has to map a line to each group, and this way isn't as pretty, but it still achieves the purpose you are looking for:

            Source https://stackoverflow.com/questions/70979167

            QUESTION

            Using pvalue from list of anova results as condition
            Asked 2022-Feb-02 at 21:17

            I want run a series of kruskal.tests, followed by a dunn_test where the Kruskal was significant. Then print the results of the significant dunn_tests.

            ...

            ANSWER

            Answered 2022-Feb-02 at 20:17

            As far as I can tell, your code mostly works. The only major problem is that you misuse the any() function. You misplaced the second parenthesis. Fixing that and rearranging the code a little, I ran this:

            Source https://stackoverflow.com/questions/70961828

            QUESTION

            Error with wilcox_effsize(): no applicable method for 'pull' applied to an object of class "c('double', 'numeric')"
            Asked 2022-Jan-31 at 15:09

            I am trying to compute the effect size of a one-sample Wilcoxon test.

            The complete dataset is stored in the sart variable. The data in question is stored in the variable Delta_PI, which is a list of numerical values ranging between -1 and 1.

            The test runs without problems, and I would like to find the effect size. Hence, I use:

            ...

            ANSWER

            Answered 2022-Jan-31 at 12:28

            It would be easier if you could provide a minimal reproducible example of your data using dput(sart).

            Without your data, I guess the first argument for wilcox_effsize() should be a dataframe, but not a vector (note sart$Delta_PI returns a vector). Take a look at ?wilcox_effsize.

            Try the following code to see how it goes.

            Source https://stackoverflow.com/questions/70924551

            QUESTION

            Extracting outputs from for loops with dplyr pipes into dataframe in R
            Asked 2022-Jan-31 at 00:22

            Having trouble figuring out how to do a series of t tests in a for loop and take the outputs each time the test is completed and append the results to a data frame. The goal is to run many t-tests at once and produce a data frame of all the results.

            Here's it done with the mtcars dataset the slow way:

            ...

            ANSWER

            Answered 2022-Jan-31 at 00:22

            QUESTION

            How do I get gt table to work with get_summary_stats
            Asked 2022-Jan-29 at 04:52
            Dataset

            Here is the dput head for my dataset:

            ...

            ANSWER

            Answered 2022-Jan-29 at 04:52

            I comment here because I need more characters.

            If you run the following:

            Source https://stackoverflow.com/questions/70902184

            QUESTION

            Extract ANOVA treat*time interactions into a dataframe
            Asked 2022-Jan-22 at 21:13

            I am analyzing an RCT and am looking at treat*time interaction tests. I wish to extract the p-values for an ANOVA into a data frame for exporting into excel. Presently, my code programs an object with the p-values as a numerical vector of dimensions [1:4]. However, when I copy this into excel, the data is transcribed into one cell per line with the values separated by spaces rather than each p-value occupying its own cell.

            ...

            ANSWER

            Answered 2022-Jan-22 at 12:40

            A couple of points.

            • It is better not to use plist as the index, but rather the output of a call to seq_len() with length(plist).
            • We can store the p-values in a matrix, which we generically call out. We then assign column names to out, so that it is easier to appreciate which p-value belongs to which fixed effect.
            • We observe that one of the models has a hard time to estimate the variance of the random effects, as it returns boundary (singular) fit: see ?isSingular. This requires your attention if you encouter this with your own (non-simulated) data. Refer to this page for more information.

            Source https://stackoverflow.com/questions/70812406

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install rstatix

            Install the latest developmental version from [GitHub](https://github.com/kassambara/rstatix) as follow:.
            Install the latest developmental version from [GitHub](https://github.com/kassambara/rstatix) as follow:
            Or install from [CRAN](https://cran.r-project.org/package=ggpubr) as follow:
            Loading packages

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries

            Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link