Check if summary function evaluates to the correct format

validate_dem_fun(fun)

Arguments

fun

The summary function to use for summarizing the continuous data in pt_demographics()