Function dpreg.circ implements the parametric joint estimator of the mean and dispersion functions when the covariate is circular and the conditional distribution is a double Poisson, a particular case of the double exponential family. It is assumed that the logarithm of the mean and the logarithm of the dispersion are sums of sine and cosine terms.
dpreg.circ(x, y, k = 2, ktilde = 1, startvmu = NULL, startvgam = NULL,
tol= 0.000001, maxit = 300)A list containing the following components:
Original dataset.
A vector of length k containing the estimators for the parameters corresponding to the mean.
A vector of length ktilde containing the estimators for the parameters corresponding to the dispersion.
Number of iterations needed for convergence.
The sample size after elimination of missing values.
The call which produced the result.
The deparsed name of the x argument.
Logical, for compatibility (always FALSE).
Vector of data for the independent variable. The object is coerced to class circular.
Vector of data for the dependent variable. This must be same length as x and should contain counts.
Number of components for modeling the logarithm of the mean, including the intercept. Equivalent to the number of parameters to be estimated for the mean function.
Number of components for modeling the logarithm of the dispersion, including the intercept. Equivalent to the number of parameters to be estimated for the dispersion function.
Vector of length k containing the initial values for the parameters corresponding to the estimation of the mean.
Vector of length ktilde containing the initial values for the parameters corresponding to the estimation of the dispersion.
Tolerance parameter for convergence in the numerical estimation.
Maximum number of iterations in the numerical estimation.
Maria Alonso-Pena, Irene Gijbels and Rosa M. Crujeiras
See Alonso-Pena et al. (2022) for details.
Alonso-Pena, M., Gijbels, I. and Crujeiras, R.M. (2022). Flexible joint modeling of mean and dispersion for the directional tuning of neuronal spike counts. Under review.
# \donttest{
data(spikes)
direction<-circular(spikes$direction,units="degrees")
counts<-spikes$counts
output<-dpreg.circ(direction, counts, k = 5, ktilde = 3)
# }
Run the code above in your browser using DataLab