Learn R Programming

ARPobservation provides a set of tools for simulating the sort of data generated during direct observation of a behavior over time. It works by first simulating a behavior stream based on an alternating renewal process, given specified distributions of event durations and interim times. The following distributions are currently supported:

  • Exponential
  • Gamma with fixed shape parameter
  • Mixture of two gammas
  • Weibull with fixed shape parameter
  • Uniform(0,x)
  • Constant (degenerate)

Different methods of recording data can then be applied to the simulated behavior stream. Functions are provided for the following recording methods:

  • continuous duration recording
  • event counting
  • momentary time sampling
  • partial interval recording
  • whole interval recording

Copy Link

Version

Install

install.packages('ARPobservation')

Monthly Downloads

262

Version

1.2.2

License

GPL-3

Maintainer

James Pustejovsky

Last Published

August 25th, 2023

Functions in ARPobservation (1.2.2)

PIR_MOM

Moment estimator for prevalence and incidence, with bootstrap confidence intervals
interval_recording

Applies interval recording to a behavior stream
logRespRatio

Calculate log-response ratio, variance, and confidence interval
interim_bounds

Interim bounds and confidence interval
incidence_bounds

Incidence bounds and confidence interval
momentary_time_recording

Applies momentary time recording to a behavior stream
ARPsimulator

An interactive alternating renewal process simulator
r_continuous_recording

Generates random samples of continuously recorded behavior streams
PIR_loglik

Calculate log-likelihood
augmented_recording

Applies augmented interval recording to a behavior stream
plot.behavior_stream

Plot method for behavior_stream objects
continuous_duration_recording

Applies continuous duration recording to a behavior stream
F_gam_mix

Mixture of two gamma distributions and related equilibrium distribution
r_PIR

Generates random partial interval recording behavior streams
r_MTS

Generates random momentary time sampling behavior streams
eq_dist

Constructor for class eq_dist
event_counting

Applies event counting to a behavior stream
r_WIR

Generates random whole interval recording behavior streams
F_unif

Uniform distribution and related equilibrium distribution
r_behavior_stream

Generates random behavior streams
r_event_counting

Generates random samples of event counts
reported_observations

Applies multiple recording procedures to a behavior stream
prevalence_bounds

Prevalence bounds and confidence interval
r_AIR

Generates random augmented interval recording behavior streams
F_exp

Exponential distribution and related equilibrium distribution
F_gam

Gamma distribution and related equilibrium distribution
ARPobservation

ARPobservation
Moes

Moes(1998) data
F_weib

Weibull distribution and related equilibrium distribution
F_const

Constant (degenerate) distribution and related equilibrium distribution
Dunlap

Dunlap et al.(1994) data