View source: R/GetStatTestByKeyGroup.R
getStatTestByKeyGroup | R Documentation |
Calculate statistical test between 2 groups for each key value in a dataframe
getStatTestByKeyGroup(
.data,
id,
key,
response,
independentVariable,
baselineLabel,
testMethod,
...
)
.data |
A dataframe |
id |
A string or numeric column - represents a unique observation within each key/group combination. PersonId, LabId, etc |
key |
A string or numeric column - key value for dataframe. Statistics will be computed between groups for each key value |
response |
A numeric column - numerical value to use with statitical test between groups. |
independentVariable |
A string column indicating group membership - should be binary. |
baselineLabel |
independentVariable label used for fold change comparison / calculation |
testMethod |
a string - indicating which statisical test to perform. One of either ks.test, t.test, or wilcox.test |
... |
dots - accomodate additional arguments function is called as parent router |
dataframe containing resulting p.values for each key/group stat test
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.