timereg (version 1.9.3)

qcut: Cut a variable

Description

Calls the cut function to cut variables on data frame.

Usage

qcut(x, cuts = 4, breaks = NULL, ...)

Arguments

x

variable to cut

cuts

number of groups, 4 gives quartiles

breaks

can also give breaks

...

other argument for cut function of R

Examples

Run this code
# NOT RUN {
data(sTRACE)
gx <- qcut(sTRACE$age)
table(gx)

# }

Run the code above in your browser using DataLab