Description Usage Arguments Details Value Author(s) See Also

View source: R/starting_values.R

Will provide a list of identity matrices for the specified modes.

1 | ```
start_ident(p, modes = NULL)
``` |

`p` |
A vector of integers. This is the dimension of the array and the length of the list to be created. |

`modes` |
A vector of integers. These are the indices in the list to be given an identity matrix. |

Given a vector of dimensions `p`

and a vector indicating which
modes will get an identity matrix `modes`

, this function will
return a list `start_vals`

where `start_vals[[i]]`

is the
identity matrix of dimensions `p[i]`

if `i`

is in
`modes`

and will be `NULL`

otherwise.

This is primarily used when getting starting values in `equi_mcmc`

.

`start_vals`

A list of identity matrices and NULL values.

David Gerard.

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.