q.desc_stats | R Documentation |
Generate descriptive summaries for continuous data namely mean, standard deviation, number of observations, median, minimum, maximum
q.desc_stats(x, groupvar="", outcomevar="", timevar="")
x |
data frame |
groupvar |
Variable by which to group data when generating descriptive summaries |
outcomevar |
Outcome variable name. Variable itself must be at least numeric |
timevar |
Time/visit variable name. |
Returns a tibble of results
Abdul Malik Sulley
id <- rep(1:5, each=4) baseline_values <- rep(rnorm(5,15,4), each=4) outcome <- c(rnorm(20,25,5)) visit <- as.factor(c(rep(1:4,5))) q.data <- cbind.data.frame(id, baseline_values, outcome, visit) q.desc_stats(q.data, groupvar="visit", outcomevar="outcome", timevar="visit")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.