Description Usage Arguments Details Value Author(s) References See Also Examples

Von Neuman et al. (1941) discussed the Mean Square of Successive Differences as a measure of variability that takes into account gradual shifts in mean. This is appropriate when studying errors in ballistics or variability and stability in mood when studying affect. For random data, this will be twice the variance, but for data with a sequential order and a positive autocorrelation, this will be much smaller. Since the mssd is just twice the variance - the autocorrelation, it is thus possible to also find the autocorrelation for a particular lag.

1 2 3 |

`x` |
a vector, data.frame or matrix |

`lag` |
the lag to use when finding |

`group` |
A column of the x data.frame to be used for grouping |

`na.rm` |
Should missing data be removed? |

When examining multiple measures within subjects, it is sometimes useful to consider the variability of trial by trial observations in addition to the over all between trial variation. The Mean Square of Successive Differences (mssd) and root mean square of successive differences (rmssd) find the variance or standard deviation of the trial to trial differences.

*σ^2 = Σ(x_i - x_{i+1})^2 /(n-1) *

In the case of multiple subjects (groups) with multiple observations per subject (group), specify the grouping variable will produce output for each group.

Similar functions are available in the matrixStats package. This is just the variance and standard deviation applied to the result from the `diff`

function.

Perhaps useful when studying mood, the `autoR`

function finds the autocorrelation for each item for the specified lag. It also returns the rmssd (root means square successive difference).

The average squared successive difference (mssd) and the square root of the average squared successive difference (rmssd). Note that this is not the same as the standard deviation of the lagged differences.

William Revelle

Jahng, Seungmin and Wood, Phillip K and Trull, Timothy J. Analysis of affective instability in ecological momentary assessment: Indices using successive difference and group comparison via multilevel modeling. Psychological methods (2008) 13, 354-375.

Von Neumann, J., Kent, R., Bellinson, H., and Hart, B. (1941). The mean square successive difference. The Annals of Mathematical Statistics, pages 153-162.

See Also `rmssd`

for the standard deviation or `describe`

for more conventional statistics. `describeBy`

and `statsBy`

give group level statistics. See also `link{mlr}`

, `link{mlreliability}`

, `link{mlPlot}`

for other ways of examining within person variability over time.

1 2 3 4 5 6 7 8 9 10 11 12 13 |

psych documentation built on May 29, 2017, 8:25 p.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.