dh.getRmStats: Produces descriptive statistics based on repeated measures...

View source: R/get-rm-stats.R

dh.getRmStatsR Documentation

Produces descriptive statistics based on repeated measures data which it would be useful to report in papers.

Description

Produces descriptive statistics based on repeated measures data which it would be useful to report in papers.

Usage

dh.getRmStats(
  df = NULL,
  outcome = NULL,
  id_var = NULL,
  age_var = NULL,
  conns = NULL
)

Arguments

df

datashield dataframe

outcome

name of outcome variable in df

id_var

name of id variable in df

age_var

name of age variable in df

conns

connection object for DataSHIELD backends

Value

a tibble containing the following columns:

min_age: 5th percentile of age max_age: 95th percentile of age n_obs: total number of observations in data n_participants: total number of unique participants n_meas_5: 5th percentile of measurements per individual n_meas_med: median number of measurements per individual n_meas_95: 95th percentile of measurements per individual


lifecycle-project/ds-cs-functions documentation built on Nov. 18, 2024, 3:36 p.m.