Giter Site home page Giter Site logo

ahmad-alsaleh / relbel Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 533 KB

Easily Compute the Relative Belief Ratio, a K-sample Bayesian Test for Mean.

Home Page: https://ahmad-alsaleh.github.io/relbel/

License: GNU General Public License v3.0

R 100.00%

relbel's Introduction

relbel relbel website

Conventional Commits License: GPL v3 R-CMD-check Lifecycle: stable

relbel computes the Relative Belief Ratio, a k-sample Bayesian Test for Mean.

Installation

You can install the development version of relbel from GitHub with:

install.packages("devtools")
devtools::install_github("Ahmad-Alsaleh/relbel")

Example

library(relbel)
set.seed(42)

initialization_function <- function(feature) {
  list(a = 0, b = 2, s_1 = 2, s_2 = 4)
}
repetition <- 5000
L <- 20
i_0 <- 1

dataset <- data.frame(
  x1 = c(-0.8606568, 1.4141698, 0.2235239, -1.1968656, 0.7677741),
  x2 = c(-0.318, -0.712, -1.320, -0.008, 0.048),
  y = c("A", "B", "A", "B", "B")
)

relbel(
  dataset[1:2], dataset["y"],
  initialization_function, repetition, L, i_0
)
#>              x1     x2
#> relbel   0.9400 1.1240
#> strength 0.2592 0.7596

relbel's People

Contributors

ahmad-alsaleh avatar

Watchers

 avatar

relbel's Issues

Upkeep for relbel (2024)

  • usethis::use_pkgdown_github_pages()
  • usethis::use_tidy_description()
  • usethis::use_package_doc()
    Consider letting usethis manage your @importFrom directives here. usethis::use_import_from() is handy for this.
  • Align the names of R/ files and test/ files for workflow happiness. The docs for usethis::use_r() include a helpful script. usethis::rename_files() may be be useful.
  • usethis::use_code_of_conduct()
  • Add alt-text to pictures, plots, etc; see https://posit.co/blog/knitr-fig-alt/ for examples

Set up or update GitHub Actions.
Updating workflows to the latest version will often fix troublesome actions:

  • usethis::use_github_action('check-standard')
  • usethis::use_github_action('test-coverage')

Created on 2024-06-17 with usethis::use_upkeep_issue(), using usethis v2.2.3.9000

Upkeep for relbel (2024)

To begin

  • pr_init("upkeep-2024-06")

Pre-history

  • usethis::use_readme_rmd()
  • usethis::use_roxygen_md()
  • usethis::use_github_links()
  • usethis::use_pkgdown_github_pages()
  • usethis::use_tidy_github_labels()
  • usethis::use_tidy_style()
  • urlchecker::url_check()

2020

  • usethis::use_package_doc()
  • usethis::use_testthat(3)
  • Align the names of R/ files and test/ files

2021

  • Remove check environments section from cran-comments.md
  • Use lifecycle instead of artisanal deprecation messages

2022

  • Handle and close any still-open master --> main issues
  • usethis:::use_codecov_badge("Ahmad-Alsaleh/relbel")
  • Update pkgdown site using instructions at https://tidytemplate.tidyverse.org
  • Update lifecycle badges with more accessible SVGs: usethis::use_lifecycle()

2023

  • usethis::use_tidy_logo(); pkgdown::build_favicons(overwrite = TRUE)
  • usethis::use_tidy_coc()
  • Use pak::pak("Ahmad-Alsaleh/relbel") in README
  • Consider running usethis::use_tidy_dependencies() and/or replace compat files with use_standalone()
  • Use cli errors or file an issue if you don't have time to do it now
  • usethis::use_standalone("r-lib/rlang", "types-check") instead of home grown argument checkers;
    or file an issue if you don't have time to do it now
  • Add alt-text to pictures, plots, etc; see https://posit.co/blog/knitr-fig-alt/ for examples

To finish

  • usethis::use_package("R", "Depends", "4.0")
  • usethis::use_tidy_description()
  • usethis::use_tidy_github_actions()
  • devtools::build_readme()
  • Re-publish released site if needed

Created on 2024-06-17 with usethis::use_tidy_upkeep_issue(), using usethis v2.2.3.9000

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.