Description Usage Arguments Details Value
View source: R/simulateBinnningProcess.R
Function to simulate re-binned counts when each count of a data a bin is considered to come from a uniform distribution and we want to simulate the data as if it comes from a less coarse bin
1 2 |
counts |
a matrix of counts of objects placed in bins where each column is a bin and each row is on abservation |
lowerBounds |
A vector of lower cut points of the original binned data |
upperBounds |
A vector of the upper cutponts of the original binnned data |
cutSize |
A scalar that is the the length of the new (less coarse) bin for simulated data |
repNum |
The number of replications to carry out |
seed |
Seed |
The function uses mapply
to simulate the placing of object within each bin into less coarse bins. It returns an unusual
two different unusual data structures. This is good for checking the simulation process but is not useful. Depending on the usage
you may want the data in different structures. Use formatSimsOutput
to get the data in the format you desire
If simplify=TRUE
, Returns a matrix the same size as the original data however, each cell of the matrix contains a list of simulations.
If simplify=FALSE
then the function returns a list where each bin is a list element. Inside each bin there is another list that represents each observation.
For all non-empty bins each observation contains n
rows, which represent objects places in the bin and p
coulmns, were each column represents a simulation. This
data structure is designed to be passed to formatSimsOutput in order
to get the data in the format you desire for analysis.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.