get_var_index_multivariate: Get the indices in the parameter vector th_y of named...

Description Usage Arguments Value

View source: R/multivariate_models.R

Description

Get the indices in the full parameter vector, th_y, of a named variable. Optionally, the variable index (j, k, or i) can be specified, or (for the correlation, z, the variable indices i1 and i2. The overall index, i, equals j for ordinal variables and J + k for continuous variables, where J is the number of ordinal variables. If no index is specified, the full range of indices for the input variable is returned. If the variable index (or indices) is specified, the relevant subrange is returned. The following table lists the five valid input patterns, where 1 indicates the index variable is specified and a 0 indicates it is not (and is thus equal to the default value, NA). j k i i1 i2 0 0 0 0 0 no index 1 0 0 0 0 j specified 0 1 0 0 0 k specified 0 0 1 0 0 i specified 0 0 0 1 1 i1 and i2 specified

Usage

1
2
3
4
5
6
7
8
9
get_var_index_multivariate(
  var_name,
  mod_spec,
  j = NA,
  k = NA,
  i = NA,
  i1 = NA,
  i2 = NA
)

Arguments

var_name

The variable name (a, tau, alpha, z)

mod_spec

The model specification

j

The ordinal index

k

The continuous index

i

The overall index

i1

The overall index for the first variable of a pair

i2

The overall index for the second variable of a pair

Value

The indices in the full parameter vector, th_y


MichaelHoltonPrice/yada documentation built on Sept. 19, 2021, 11:27 p.m.