Description Usage Arguments Value References Examples
This function returns the summary of the EMA variable, which include the mean, variance, autocorrelation, λ_o and λ_s for each subject. The function will return a n*6 matrix, where n is the number of subjects. In each row, we record the subject's ID, and his/her five summary variables listed above.
1 | summarize_EMA_data(ID, x)
|
ID |
a vector contain all the IDs for each measurement in x. |
x |
a vector contain all the measurements for all the subjects. |
Matrix of dimension n*6, where n is the number of subject. The six columns are: ID, mean, variance, autocorrelation, λ_o and λ_s, respectively.
buu2020associationEMAanalysis
1 2 3 | ID = rep(seq(1:10), each = 8)
x = rnorm(80)
summarize_EMA_data(ID, x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.