Sindex: Simple index numbers

View source: R/indexnum_functions.R

SindexR Documentation

Simple index numbers

Description

Sindex returns a data frame with the index numbers with a given base. An index number measures changes in a variable with respect to a characteristic (time, location, ...)

Sindex can also be used for computing the base change of an index number.

Usage

Sindex(x, pervar, vvar, base)

Arguments

x

Data frame containing, at least, a factor and a numeric variables.

pervar

Character string for the name of the factor variable with the characteristics.

vvar

Character string for the name of the numeric variable for which you want to calculate the index number or representing the index number for which you want to compute a base change.

base

Character string for the name of the base characteristic.

Value

Sindex returns a data frame with one column:

index_base

The index number with base base

See Also

Deflat, ComplexIN, priceIndexNum.

Examples

data(Depositos, package = "RcmdrPlugin.TeachStat")
Sindex(Depositos, "year", "quantity", "2006")

RcmdrPlugin.TeachStat documentation built on Nov. 14, 2023, 5:08 p.m.