nntsloglikInterval0to1 | R Documentation |
Computes the log-likelihood function for incidence data (number of observed values in certain intervals defined in the interval [0,1))
nntsloglikInterval0to1(data, cutpoints, cpars = 1/sqrt(2 * pi), M = 0)
data |
Number of observations in each interval |
cutpoints |
Vector of size length(data)+1 with the limits of the intervals |
cpars |
Vector of complex numbers of dimension M+1. The first element is a real and positive number. The sum of the SQUARED moduli of the c parameters must be equal to 1/(2*pi). |
M |
Number of components in the NNTS |
The function returns the value of the log-likelihood function for data
Juan Jose Fernandez-Duran and Maria Mercedes Gregorio-Dominguez
data<-c(1,2,6,4,1)
cutpoints<-c(0,0.2,0.4,0.6,0.8,0.9999999)
cpars<-nntsrandominitial(1)
nntsloglikInterval0to1(data, cutpoints, cpars, 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.