bivarian

Generates a HTML output with p values for bivariate analysis

https://github.com/andresfloresg/bivarian

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (21.1%) to scientific vocabulary
Last synced: 6 months ago · JSON representation

Repository

Generates a HTML output with p values for bivariate analysis

Basic Info
  • Host: GitHub
  • Owner: AndresFloresG
  • License: gpl-3.0
  • Language: R
  • Default Branch: master
  • Size: 307 KB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 1
Created over 1 year ago · Last pushed 8 months ago
Metadata Files
Readme Changelog License

README.Rmd

---
output: github_document
---



```{r, include = FALSE}
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)
```

# BiVariAn 



[![R-CMD-check](https://github.com/AndresFloresG/BiVariAn/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/AndresFloresG/BiVariAn/actions/workflows/R-CMD-check.yaml)
[![Codecov test coverage](https://codecov.io/gh/AndresFloresG/BiVariAn/graph/badge.svg)](https://app.codecov.io/gh/AndresFloresG/BiVariAn)
[![CRAN status](https://www.r-pkg.org/badges/version/BiVariAn)](https://CRAN.R-project.org/package=BiVariAn)
![CRAN Downloads](https://cranlogs.r-pkg.org/badges/grand-total/BiVariAn)





# Overview The purpose of 'BiVariAn' is to facilitate bivariate analysis by integrating functions that allow the results of such analyses to be represented graphically and in text. Currently the package can generate summary tables of analysis data for: Analysis of continuous variables across two groups using Student's t-tests (OR Welch's t-tests according to homogeneity of variances), Mann-Whitney U; analysis of dichotomous variables using Chi-square and Fisher's exact test; analysis of normality of raw data using the Shapiro-Wilk test. It is also possible to generate graphs automatically with or without labels on the variables with the possibility of choosing a theme from the 'ggplot2' package. Currently under development is the option to generate a generic interpretation of the statistical tests, temporarily available only in Spanish, but there are plans to include more languages. In addition to bivariate analyses, regression analyses with predictor selection using the stepwise backward method for linear, logistic and Firth penalized logistic regression models can be performed in an automated manner. Note: The use of the package does not replace individual customized analysis, but rather streamlines the process of producing the results. We encourage users to perform statistical analyses based on the recommendations for each type of study. ## Installation You can install the development version of BiVariAn from [GitHub](https://github.com/) with: ``` r # install.packages("pak") pak::pak("AndresFloresG/BiVariAn") ``` Or you can install the official CRAN version with: ``` r install.packages("BiVariAn") ``` ## Example Loading the package ```{r, warning=FALSE, message=FALSE} library(BiVariAn) ``` Render an automatic Shapiro-Wilk's table of a simple dataset ```{r, warning=FALSE} auto_shapiro_raw(cars) shapiro.test(cars$speed) ``` Return Shapiro-Wilk's results as a dataframe ```{r} auto_shapiro_raw(cars, flextableformat = FALSE) ``` Render an automatic Shapiro-Wilk's table of a more complex dataset ```{r} # Load riskCommunicator to access Framingham dataset library(riskCommunicator) ``` ```{r, message=FALSE} # Load dplyr to select specific columns library(dplyr) data(cvdd) ``` For shapiro.test, sample size must be between 3 and 5000 Let's select only 300 observations (arbitrary) ```{r} set.seed(081224) ex_sample<-slice_sample(cvdd, n=300) ``` Now, let's select specific columns from the database ```{r} auto_shapiro_raw(ex_sample %>% select(TOTCHOL, SYSBP, DIABP, BMI, HEARTRTE)) ``` Common use of shapiro.test ```{r} shapiro.test(ex_sample$TOTCHOL) ``` Return the same Shapiro-Wilk's results as a dataframe ```{r} auto_shapiro_raw(ex_sample %>% select(TOTCHOL, SYSBP, DIABP, BMI, HEARTRTE), flextableformat = FALSE) ```

Owner

  • Login: AndresFloresG
  • Kind: user

GitHub Events

Total
  • Push event: 46
Last Year
  • Push event: 46

Packages

  • Total packages: 1
  • Total downloads:
    • cran 246 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 1
  • Total maintainers: 1
cran.r-project.org: BiVariAn

Bivariate Automatic Analysis

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 246 Last month
Rankings
Dependent packages count: 27.1%
Dependent repos count: 33.4%
Average: 49.1%
Downloads: 87.0%
Maintainers (1)
Last synced: 7 months ago

Dependencies

DESCRIPTION cran
  • car * imports
  • dplyr * imports
  • epitools * imports
  • ggplot2 * imports
  • ggprism * imports
  • rrtable * imports
  • table1 * imports
  • tableHTML * imports
  • testthat >= 3.0.0 suggests