mono.range {MonoInc} | R Documentation |
Proportion in Range
Description
This function reports the proportion of entries that fall inside of the prespecified range.
Usage
mono.range(data, data.r, tol, xr.col, x.col, y.col)
Arguments
data |
a data.frame or matrix of measurement data |
data.r |
range for y values; must have three columns: 1 - must match values in x.col, 2 - lower range values, 3 - upper range values |
tol |
tolerance; how much outside of the range (data.r) is acceptable; same units as data in y.col |
xr.col |
column where x values, or time variable is stored in data.r |
x.col |
column where x values, or time variable is stored in data |
y.col |
column where y values, or measurements are stored in data |
Value
Returns the proportion of y values that fall inside the prespecified range
Author(s)
Michele Josey mjosey@nccu.edu Melyssa Minto mminto@nccu.edu
Examples
data(simulated_data)
data(data.r)
mono.range(simulated_data, data.r, tol=4, xr.col=1 ,x.col=2, y.col=3)
[Package MonoInc version 1.1 Index]