quantile_emu: A function to calculate the quantile from a numeric variable

View source: R/quantile_emu.R

quantile_emuR Documentation

A function to calculate the quantile from a numeric variable

Description

This function allows you to calculate the quantile position from a variable in a dataframe

Usage

quantile_emu(
  df,
  var,
  min.seq,
  max.seq,
  by,
  labels,
  labels.mark,
  include.lowest
)

Arguments

df

The dataframe containing the EMU information.

var

The column name of the variable to calculate the quantile position.

min.seq

The minimum value to compute the probablities of the quantile (default to 0)

max.seq

The maximum value to compute the probablities of the quantile (default to 1)

by

The interval to compute the probabilities calculation (default to 0.25 for 4 quartiles)

labels

Logical. If labels should be calculated, instead of the brackets position

labels.mark

Interval. Labels for the quartiles calculated depending on the intervals used as inputs (default 1:4)

include.lowest

Logical. If lowest value from the interval should be included

Value

The column with the quartile computed

Examples

quantile_emu(bd, var = value)

samesag/emu documentation built on Aug. 22, 2023, 3:19 p.m.