CIRE: Circular Isotonic Regresssion Estimator

CIRER Documentation

Circular Isotonic Regresssion Estimator

Description

This function obtains the Circular Isotonic Regression Estimator (CIRE) of a set of data assuming an order among them. See details for a full explanation.

Usage

CIRE (data, groups=NULL, circular = TRUE)

Arguments

data

vector or matrix of data to be processed. See details.

groups

a numeric vector representing the assumed order of data.

circular

logical, by default TRUE is the order wrapped around the circle (circular order). If FALSE the order is not closed.

Details

It uses the algorithm developed in Rueda et al (2009). The final solution is found in a computationally efficient way by searching for the feasible solution with the smallest SCE, see sce. The order can be chosen by the user and is set using the groups argument. The order is defined in groups by a numeric vector with the positions in the order of each element. An example of order would be the simple circular order, defined by the set C_{sco}.

C_{sco}=\{\phi=(\phi_1,\phi_2,\ldots,\phi_q)\in [0,2\pi]^q:\phi_{1}\leq\phi_{2}\leq\ldots\leq\phi_{q}\leq\phi_{1}\}

This order is wrapped around the circle. However, if the user wants the order not to be wrapped, then circular = FALSE and the order would be the simple order, for instance:

C_{so}=\{\phi=(\phi_1,\phi_2,\ldots,\phi_q)\in [0,2\pi]^q:0\leq\phi_{1}\leq\phi_{2}\leq\ldots\leq\phi_{q}\leq 2\pi\}

For further information see the vignette of this package isocir.

The argument data is a vector with the unrestricted circular means or a matrix whose columns are the replications of the data and the rows are the populations. All the values must belong to the interval [0,2\pi].

The argument groups is a numeric vector with length equal to the number of populations, q. Each value of the argument establishes the level of the order the corresponding population is assigned to. The default value is the sequence corresponding to the simple order (1, 2, ..., q), circular if closed=TRUE. Notice that no particular order is assumed among the populations belonging to the same level set.

Value

It returns an S3 object of class isocir that is a list with the next elements:

cirmeans

A list with the unrestricted circular means in the same form as the order introduced by groups.

SCE

Sum of Circular Errors of the final CIRE.

CIRE

A list with the ordered estimations, the result of the algorithm that obtained the CIRE.

The Circular Isotonic Regression Estimator is returned as a list just to see the groups of the order. In case you would like to use it as a vector just run: unlist(object$CIRE).

Author(s)

Author(s): Sandra Barragán based on the SAS routines written by Miguel A. Fernández. Maintainer: <sandra.barragan@gmail.com>

References

Mardia, K. and Jupp, P. (2000). Directional Statistics, Chichester: Wiley.

Rueda, C., Fernandez, M. A. and Peddada, S. D. (2009). Estimation of parameters subject to order restrictions on a circle with application to estimation of phase angles of cell-cycle genes. Journal of the American Statistical Association, 104, n485; pp 338–347. https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2742472/

Fernandez, M. A., Rueda, C. and Peddada, S. D. (2012). Identification of a core set of signature cell cycle genes whose relative order of time to peak expression is conserved across species, Nucl. Acids Res. 40, n7: pp 2823–2832. doi:10.1093/nar/gkr1077. https://academic.oup.com/nar/article/40/7/2823/1183140

See Also

sce, cond.test, mrl, isocir, plot.isocir.

Examples


# We consider the following data from the package that are random circular data:
data(cirdata)
circular_ordered_estimator <- CIRE(cirdata)
# We can take the vector of the CIRE estimators:
circular_ordered_estimator $CIRE
# And the SCE:
circular_ordered_estimator $SCE

# Random data with a more complex order:
CIRE(cirdata, groups=c(1,1,2,3,5,3,4,6))


isocir documentation built on Aug. 17, 2023, 9:07 a.m.