calc_tscore | R Documentation |
Computes a single GAS T-score for a subject at a point in time.
calc_tscore(scores, weights = NULL, rho = 0.3, na.rm = TRUE)
scores |
Discrete goal scores. |
weights |
Optional goal weights. If not provided, all weights are set to 1 (i.e. unweighted goals). |
rho |
Average degree of inter-correlation between goal scores.
By default, |
na.rm |
Logical. If TRUE (default), then removes missing values. |
A single score aggregating a subject's set of a goal scores.
d <- list(scores = c(-2, 0, -1, 2, 0, 1), weights = c(3, 5, 1, 4, 2, 6)) calc_tscore(d$scores, d$weights)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.