get.indexation {ldt}R Documentation

Get Numeric Indices in a Combination

Description

This function takes the output of the get.combinations function and a numeric matrix with given column names. It converts all character vectors in innerGroups or partitions to numeric vectors based on the index of the columns.

Usage

get.indexation(combinations, data, isInnerExogenous)

Arguments

combinations

A list returned by the get.combinations function.

data

A list returned by get.data function.

isInnerExogenous

Use TRUE if outer loop is defined over the endogenous variables and FALSE if it is for exogenous.

Value

A list similar to the input combinations, but with all character vectors in innerGroups or partitions converted to numeric vectors based on the index of the columns in the data matrix. It sums the exogenous indexes with the number of endogenous variables and returns zero-based indexation for C code.


[Package ldt version 0.5.3 Index]