Description Usage Arguments Details Value Author(s) Examples

View source: R/simulate_behavior_stream.R

Random generation of behavior streams (based on an alternating renewal process) of a specified length and with specified mean event durations, mean interim times, event distribution, and interim distribution, which are then coded as augmented interval recording data with given interval length and rest length.

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

`n` |
number of behavior streams to generate |

`mu` |
mean event duration |

`lambda` |
mean interim time |

`stream_length` |
length of behavior stream |

`F_event` |
distribution of event durations. Must be of class |

`F_interim` |
distribution of interim times. Must be of class |

`interval_length` |
total interval length |

`rest_length` |
length of any recording time in each interval |

`equilibrium` |
logical; if |

`p0` |
Initial state probability. Only used if |

`tuning` |
controls the size of the chunk of random event durations and interim times. Adjusting this may be useful in order to speed computation time . |

Generates behavior streams by repeatedly drawing random event durations and random interim times from the distributions as specified, until the sum of the durations and interim times exceeds the requested stream length. Then applies an augmented interval recording filter to the generated behavior streams.

An array with rows corresponding the number of intervals per session,
columns corresponding to MTS, PIR, and WIR records, all replicated n times.
`n`

times.

James Pustejovsky <jepusto@gmail.com>

1 2 3 4 |

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.