pubh (version 1.3.2)

freq_cont: Relative and Cumulative Frequency.

Description

freq_cont tabulates a continuous variable by given classes.

Usage

freq_cont(x, bks, dg = 2)

Value

A data frame with the classes, the mid-point, the frequencies, the relative and cumulative frequencies.

Arguments

x

A numerical (continuous) variable. Ideally, relatively long (greater than 100 observations).

bks

Breaks defining the classes (see example).

dg

Number of digits for rounding (default = 2).

Examples

Run this code
data(IgM, package = "ISwR")
Ab <- data.frame(IgM)
estat(~IgM, data = Ab)
freq_cont(IgM, seq(0, 4.5, 0.5))

Run the code above in your browser using DataLab