# cyclical.max.min

### Description

Returns the log-maximum likelihood and the estimator of the mean under cyclical profile with maximum at `max1`

and minimum at `min1`

(`max1`

< `min1`

).

### Usage

1 | ```
cyclical.max.min(data,x,n.rep,max1,min1)
``` |

### Arguments

`data` |
A vector containing the expressions of one gene. |

`x` |
A vector consisting of the average expression at time points (1, 2,... ,T), where T is the total number of time points. |

`n.rep` |
A vector consisting of the number of replicate arrays at time points (1, 2,... ,T), where T is the total number of time points. |

`max1` |
Cyclical profile with maximum at |

`min1` |
Cyclical profile with minimum at |

### Value

`logelr` |
Log-maximum likelihood |

`mu` |
A vector containing the estimator of the mean |

### Author(s)

Tianqing Liu, Nan Lin, Ningzhong Shi and Baoxue Zhang

Maintainer: Tianqing Liu <tianqingliu@gmail.com>

### References

Liu, T., Lin, N., Shi, N. and Zhang, B. (2009), *Information criterion-based clustering with order-restricted candidate profiles in short time-course microarray experiments.* BMC Bioinformatics, **10**: 146.

Robertson, T., Wright, F. T. and Dykstra, R. L. (1988). *Order restricted statistical inference.* New York: Wiley.

Shi, N., Gao, W. and Zhang, B. (2001). *One sided estimation and testing
problems for location models from grouped samples.*
Commun Statist-Simula, **30**: 885-898.