get_lambda_o: Calculate lambda_o

Description Usage Arguments References Examples

View source: R/ema.R

Description

This function calculate λ_o, an instability measure of the EMA data in one subject.The data vector is first standardized. Then we calculate λ_o as

λ_o = n_o/t_o

where n_o is the number of transitions from outside to inside the standard range, and t_o is the number of assessments with a score outside the standard range. λ_o indicates the conditional probability of transitioning to inside the standard range, given being outside.

Usage

1

Arguments

x

numeric vector of measurements for one subject

References

\insertRef

buu2020associationEMAanalysis

Examples

1
2
x <- 1:10
get_lambda_o(x)

zhanruicai/EMAanalysis documentation built on Feb. 7, 2021, 12:16 a.m.