fun.disc.estimation | R Documentation |
This function supplements fun.nclass.e
and it is not intended to
be used by the users directly.
fun.disc.estimation(x, nint)
x |
A vector of observations. |
nint |
Number of intervals to cut the vectors into. |
The function cuts the vector into evenly spaced categories and estimate the mean and variance of the actual data based on the categorisation.
Two numerical values, the first being the mean and the second being the variance.
Steve Su
fun.nclass.e
## Cut up a randomly normally distributed observations into 5 evenly spaced
## categories and estimate the mean and variance based on this cateogorisation.
junk<-rnorm(1000,3,2)
fun.disc.estimation(junk,5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.