Description Usage Arguments Value See Also Examples
Calculate slopes by groups
1 | get_slope_by_group(d, group, x, y)
|
d |
wide,dataframe containing the |
group |
name of column |
x, y |
names of column in |
a dataframe with two columns, one containing the group id and one containing the estimated slope for that group
get_slope()
, cross_threshold()
1 2 3 4 5 6 7 8 | sub02 |>
tidyr::pivot_wider(names_from = contrast, values_from = y) |>
get_slope_by_group(voxel, low, high)
# create group with intersection of variables
sub02 |>
tidyr::pivot_wider(names_from = contrast, values_from = y) |>
get_slope_by_group(c(voxel, sub), low, high)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.