sub_df <- age_df[,c("Volume_1", "age", "sex", "ICV_baseline")] |> na.omit()
colnames(sub_df) <- c("Volume_1", "age", "sex", "icv")
age_list <- list("Volume_1" = age_list_gen(sub_df = sub_df))
customized_results <- cus_result_gen(age_list, customized_q = 0.75, f = "Volume_1")
if(interactive()){
age_trend_plot(
age_list = age_list,
f = "Volume_1",
s = "F",
q = "customization",
cus_list = customized_results,
use_plotly = TRUE
)
}
Run the code above in your browser using DataLab