blue_ztransform: Linear transformations to compare measurements between years

Description Usage Arguments Value Author(s) Examples

View source: R/Linear_transformations.R

Description

This function is used to standardize your results and transform them with a set mean and standard deviation.

Usage

1
blue_ztransform(x, data, meanvar = 500, sdvar = 100)

Arguments

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

Value

The output is a vector of a transformed value with the mean and standard deviation set with the parameters

Author(s)

Juan Carlos Saravia

Examples

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)

jsaraviadrago/bluegrafir documentation built on July 20, 2020, 3:01 a.m.