reinstate {mixR} | R Documentation |
Reinstate the Binned Data to the Raw Data
Description
This function creates a numeric vector approximating the raw data from binned data
Usage
reinstate(data)
Arguments
data |
a three-column matrix representing the raw data |
Details
The function reinstate
creates a numeric vector by generating
random data from the Uniform distribution
for
and then combine all random data together.
are the first, second and the third column of the matrix
data
and is the number of bins.
It is used for enabling parameter initialization for EM algorithm when we fit mixture
models for binned data.
Value
The function returns a numeric vector.
See Also
Examples
x <- rnorm(100)
data <- bin(x, seq(-3, 3, 0.25))
y <- reinstate(data)
[Package mixR version 0.2.0 Index]