Sindex {RcmdrPlugin.TeachStat} | R 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 |
See Also
Deflat
, ComplexIN
, priceIndexNum
.
Examples
data(Depositos, package = "RcmdrPlugin.TeachStat")
Sindex(Depositos, "year", "quantity", "2006")
[Package RcmdrPlugin.TeachStat version 1.1.3 Index]