Learn R Programming

CircNNTSR (version 2.0)

nntsloglikSymmetric: NNTS Symmetric log-likelihood function

Description

Computes the log-likelihood function with NNTS symmetric density for data

Usage

nntsloglikSymmetric(cpars = c(0, 0), M = 0, data)

Arguments

cpars
vector of real numbers of dimension M+1. The first M numbers are the SQUARED moduli of the c parameters, the sum must be less than 1/(2*pi). The last number is the mean of symmetry
M
number of components in the NNTS
data
vector with angles in radians. If data is a matrix the first column is used

Value

  • The function gives the value of the log-likelihood function for data

References

Fernandez-Duran, J.J., Gregorio-Dominguez, M.M. (2009) Symmetric Circular Distributions Based on Nonnegative Trigonometric Sums. Working Paper, DE-C09.12, Department of Statistics, ITAM, Mexico

Examples

Run this code
nntsloglikSymmetric(c(.01,.02,2),2,t(c(pi,pi/2,2*pi,pi)))

Run the code above in your browser using DataLab