compute_AI {Ymisc} | R Documentation |
The brain asymmetry index (AI)
Description
AI formula = [(left-right)/(left+right)]. compute_AI() creates new columns that are AIs of the brain measures using the most widely-used formula.
Usage
compute_AI(
data = sample_data,
left_hemisphere = "lh",
right_hemisphere = "rh",
separator = "_",
ID = "ID",
hemisphere = "prefix",
start,
end
)
Arguments
data |
The wide format data |
left_hemisphere |
The prefix or suffix that indicates the left hemisphere in the variable names |
right_hemisphere |
The prefix or suffix string that indicates the right hemisphere in the variable names |
separator |
A character vector that separates characters in the variable names. |
ID |
The column of identifiers. |
hemisphere |
The character vector that indicates whether a hemisphere indicator in the variable names is a prefix or suffix. |
start |
The column that specifies the starting point of a set of variables to calculate the AIs. |
end |
The column that specifies the endpoint of a set of variables to calculate the AIs. |
Value
The data with AIs.
Examples
data(sample_data)
compute_AI(sample_data,
left_hemisphere = "lh",
right_hemisphere = "rh",
separator="_",
ID="ID",
hemisphere="prefix",
start="lh_Thalamus",
end="rh_AccumbensArea")
[Package Ymisc version 0.1.0 Index]