View source: R/indexnum_functions.R
Sindex | R Documentation |
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.
Sindex(x, pervar, vvar, base)
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. |
Sindex
returns a data frame with one column:
index_base |
The index number with base |
Deflat
, ComplexIN
, priceIndexNum
.
data(Depositos, package = "RcmdrPlugin.TeachStat")
Sindex(Depositos, "year", "quantity", "2006")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.