knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
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.
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")
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.