ag.histogram.ds: Computes a histogram of the given data values without...

Description Usage Arguments Value Author(s) Examples

Description

this functions produces the information required to plot a histogram. This is done without allowing for bins (cells) with a count of less than 5. If a bin has a count < 5 it is collapsed with the nearing bin; this process iterates until all bins have count >=5.

Usage

1

Arguments

xvect

the numeric vector for which the histogram is desired.

min

a numerical used as the lower lim of the histogram breaks

max

a numerical used as the upper lim of the histogram breaks

Value

a list with an object of class histogram and a vector of x-positions

Author(s)

Gaye, A.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
# load the file that contains the login details
data(logindata)

opals <- ag.ds.login(logins=logindata,assign=TRUE,variables=myvar)

# generate a histogram object without plotting
hist.object <- datashield.aggregate(opals, quote(ag.histogram.ds(D$LAB_TSC)))

## End(Not run)

datashield/ag.dev.sv documentation built on May 14, 2019, 7:46 p.m.