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

BayesianLaterality

CRAN_Status_Badge R-CMD-check

BayesianLaterality contains a function for predicting latent hemispheric dominance based on observed laterality using a Bayes classifier developed by Sørensen and Westerhausen (2020). See also the accompanying Shiny app.

Installation

You can install BayesianLaterality from CRAN with:

install.packages("BayesianLaterality")

Install the latest development version from GitHub with:

# install.packages("remotes")
remotes::install_github("LCBC-UiO/BayesianLaterality")

Application Example

library(BayesianLaterality)

The main (and only) function of the package is predict_dominance(). To see the arguments that can be set by the user and a more extended example, type ?predict_dominance in the R terminal. Here is a simple example. The dataset example_data1 contains three laterality measurements on three right-handed individuals.

example_data1

We then obtain predicted hemispheric dominance as follows. The ID column reflects the row in the original dataset.

predict_dominance(example_data1)


osorensen/asymm documentation built on Aug. 25, 2023, 3:45 p.m.