blue_comparison: This function is used to compare results between groups or...

Description Usage Arguments Value Author(s) Examples

View source: R/Linear_transformations.R

Description

This function is used to compare results between groups or years with parameters that you establish.

Usage

1
blue_comparison(lmes, data, parfmean, parfsd, meanvar = 500, sdvar = 100)

Arguments

lmes

vector with the most recent measurement or the group you want to compare against the original parameters

data

data.frame from the vector with the most recent measurement

parfmean

mean with the baseline parameter to compare against.

parfsd

sd with the baseline parameter to compare against.

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 that compares a recent measurement against a baseline measurement.

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_comparison(data_example$puntaje, data_example,
 parfmean = 2, parfsd = 0.5)

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