Description Usage Arguments Value Author(s) Examples
View source: R/Linear_transformations.R
This function is used to compare results between groups or years with parameters that you establish.
1 | blue_comparison(lmes, data, parfmean, parfsd, meanvar = 500, sdvar = 100)
|
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. |
The output is a vector of a transformed value that compares a recent measurement against a baseline measurement.
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_comparison(data_example$puntaje, data_example,
parfmean = 2, parfsd = 0.5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.