Description Usage Arguments Value Author(s) See Also Examples

Returns a matrix *C* that can be used to specify linear constraints *C*b >= 0* to impose unimodality with mode at the *m*-th element on a numeric vector *b* of length *p*.

1 | ```
unimat(p, m)
``` |

`p` |
Integer (>=2) giving the length of the vector |

`m` |
Location of the mode within the vector |

Matrix *C* with coefficients for the linear constraints.

Claudia Koellmann

1 2 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.