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)
Value
Sindex returns a data frame with one column:
index_base
The index number with base 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.