Get the slopes for each experimental unit
Usage
get_slopes(
df_long,
exp_unit = "mouse",
y = "log10tf",
x = "days_after_treatment"
)
Arguments
- df_long
Long dataframe containing the values that will be used
to calculate the slopes
- exp_unit
A string indicating which column from df_long to
group the values. Default is "mouse".
- y
A string indicating which column the values are to regress from.
Default is "log10tf".
- x
A string indicating the time column. Default is
"days_after_treatment"
Value
A dataframe with estimated slopes and the associated statistics
Examples
if (FALSE) { # \dontrun{
pdx_treat_ivis_long <- pdx_treat_ivis_long %>%
dplyr::filter(days_after_treatment <= 0) %>%
tidyr::separate(
id,
into = c("pdx", "mouse", "gland", "cage", "treatment"),
sep = "_",
remove = FALSE
)
get_slopes(pdx_treat_ivis_long)
} # }