Description Usage Arguments Details Author(s) See Also Examples

Basic functions in the hyper2 package

1 2 3 4 5 6 7 8 9 10 11 |

`H` |
A hyper2 object |

`L` |
A list whose elements specify the brackets of a hyper2 object |

`d` |
A vector of powers; |

`pnames` |
A character vector specifying the names of |

These are the basic functions of the hyper2 package. Function
`hyper()`

is the low-level creator function; `as.hyper2()`

is
a bit more user-friendly and attempts to coerce its arguments into a
suitable form; for example, a matrix is interpreted as rows of brackets.

Function `is_valid_hyper2()`

tests for valid input, returning a
Boolean.

Function `size()`

returns the (nominal) length *n* of
nonnegative vector *p=(p_1,...,p_n)*
where *p_1+...+p_n=1*. Note that function
`lhyper2()`

takes the vector
*p=(p_1,...,p_{n-1})*.

Robin K. S. Hankin

1 |

```
p1 * (p1 + p2)^4 * p2^2 * (p2 + p3)^5 * p3^3
```

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.