Description Usage Arguments Value Author(s) Examples
View source: R/Linear_transformations.R
This function is used to standardize your results and transform them with a set mean and standard deviation.
1 | blue_ztransform(x, data, meanvar = 500, sdvar = 100)
|
x |
vector that you want to change scale. |
data |
dataframe that goes with continous vector |
meanvar |
parameter for the mean, the default is 500. This is used for the linear transformation and setting a mean different from 0 |
sdvar |
parameter for the standard deviation, the default is 100. This is used for the linear transformation and setting a standard deviation different from 1 |
The output is a vector of a transformed value with the mean and standard deviation set with the parameters
Juan Carlos Saravia
1 2 3 4 | data_example <- data.frame( ID = c(1,2,3,4,5,6,7,78,7,7,7,7,7,7,7,7,8,8,8,8,8),
puntaje = c(1,2,3,4,5,6,7,78,7,7,7,7,7,7,7,7,8,8,8,8,8))
blue_ztransform(data_example$puntaje,data_example,
meanvar = 500, sdvar = 100)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.