Learn R Programming

epitab (version 0.2.2)

summary_median: Builds a function to calculate the median of a continuous variable for each level of an outcome.

Description

Builds a function to calculate the median of a continuous variable for each level of an outcome.

Usage

summary_median(var)

Arguments

var

A continuous variable name as a string.

Value

A function that calculates the median value of var for each outcome level.