Description Usage Arguments Value Author(s) See Also Examples

This function calculates for a given dependent variable the value of that variable at lag timesteps earlier in the time series of an experiment.

1 |

`dat` |
A data frame with (minimally) a grouping factor, an time index for successive trails/events, and a behavioral measure |

`group` |
A grouping factor such as |

`time` |
A sequential time index measure such as |

`depvar` |
The dependent variable, usually a chronometric measure such as RT |

`lag` |
The lag for which previous values are to be extracted |

A vector with the values of the dependent variable at the specified lag. The by-group mean is substituted for the first lag timestep(s), for which there is/are no preceding value(s) for the dependent variable.

R. H. Baayen

acf.fnc

1 2 3 4 5 6 7 8 9 |

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.