cs_results <- claus_2020 |>
cs_combined(
id,
time,
bdi,
pre = 1,
post = 4,
reliability = 0.80
)
cs_results
summary(cs_results)
plot(cs_results)
# You can choose a different cutoff but must provide summary statistics for the
# functional population
cs_results_c <- claus_2020 |>
cs_combined(
id,
time,
bdi,
pre = 1,
post = 4,
reliability = 0.80,
m_functional = 8,
sd_functional = 8,
cutoff_type = "c"
)
cs_results_c
summary(cs_results_c)
plot(cs_results_c)
# You can group the analysis by providing a grouping variable in the data
cs_results_grouped <- claus_2020 |>
cs_combined(
id,
time,
bdi,
pre = 1,
post = 4,
group = treatment,
reliability = 0.80,
m_functional = 8,
sd_functional = 8,
cutoff_type = "c"
)
cs_results_grouped
summary(cs_results_grouped)
plot(cs_results_grouped)
Run the code above in your browser using DataLab