R: Applies augmented interval recording to a behavior stream
augmented_recording
R Documentation
Applies augmented interval recording to a behavior stream
Description
Divides the observation session into intervals.
Each interval is scored using partial interval recording, whole interval recording, and
momentary time sampling (at the beginning of the following interval). The sum of the three
scores is then recorded.
portion of each interval to exclude from observation. Default is zero. See details.
Details
Each behavior stream is divided into intervals of length interval_length.
The last rest_length of each interval is excluded from observation.
For example, for a stream length of 100, interval_length = 20, and
rest_length = 5, the first interval runs from [0,15), the second interval runs from [20,35), etc.
Value
A matrix with rows equal to the number of intervals per session and
columns equal to the number of behavior streams in BS.
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(ARPobservation)
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/ARPobservation/augmented_recording.Rd_%03d_medium.png", width=480, height=480)
> ### Name: augmented_recording
> ### Title: Applies augmented interval recording to a behavior stream
> ### Aliases: augmented_recording
>
> ### ** Examples
>
> BS <- r_behavior_stream(n = 5, mu = 3, lambda = 10,
+ F_event = F_exp(), F_interim = F_exp(), stream_length = 100)
> augmented_recording(BS, interval_length = 20)
$initial
[1] FALSE FALSE FALSE FALSE FALSE
$AIR
[,1] [,2] [,3] [,4] [,5]
[1,] 1 2 1 1 2
[2,] 0 1 1 0 1
[3,] 1 0 0 1 0
[4,] 2 2 1 1 1
[5,] 1 1 2 1 1
>
>
>
>
>
> dev.off()
null device
1
>