calc_tscore: Calculate a GAS T-score

View source: R/calculate.R

calc_tscoreR Documentation

Calculate a GAS T-score

Description

Computes a single GAS T-score for a subject at a point in time.

Usage

calc_tscore(scores, weights = NULL, rho = 0.3, na.rm = TRUE)

Arguments

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, rho = 0.3.

na.rm

Logical. If TRUE (default), then removes missing values.

Value

A single score aggregating a subject's set of a goal scores.

Examples

d <- list(scores = c(-2, 0, -1, 2, 0, 1),
          weights = c(3, 5, 1, 4, 2, 6))
calc_tscore(d$scores, d$weights)

taylordunn/gasr documentation built on April 5, 2022, 1:37 a.m.