search.rfunc {ldt}R Documentation

Create a Model Set for an R Function

Description

Use this model to create a model set for an R function.

Usage

search.rfunc(
  data = get.data(),
  combinations = get.combinations(),
  metrics = get.search.metrics(),
  modelChecks = get.search.modelchecks(),
  items = get.search.items(),
  options = get.search.options(),
  rFuncName,
  length1,
  isInnerExogenous
)

Arguments

data

A list that determines data and other required information for the search process. Use get.data() function to generate it from a matrix or a data.frame.

combinations

A list that determines the combinations of endogenous and exogenous variables in the search process. Use get.combinations() function to define it.

metrics

A list of options for measuring performance. Use get.search.metrics function to get them.

modelChecks

A list of options for excluding a subset of the model set. See and use get.search.modelchecks function to get them.

items

A list of options for specifying the purpose of the search. See and use get.search.items function to get them.

options

A list of extra options for performing the search. See and use get.search.options function to get them.

rFuncName

Name of a function that uses column indices and number of endogenous variables with respect to data. It should estimate a model and return a list with required performance statistics. See details.

length1

An integer for the length of requested information. This can be the number of exogenous variables.

isInnerExogenous

If TRUE, exogenous indices are defined by innerGroups in the combinations argument.

Details

The central part of calling this function is to write a function with rFuncName name. This function must have the following arguments:

The rFuncName function should use these arguments and estimate or predict by using any available R function.

This function must return a List with the following items:

Value

A nested list with the following members:

counts

Information about the expected number of models, number of estimated models, failed estimations, and some details about the failures.

results

A data frame with requested information in items list.

info

The arguments and some general information about the search process such as the elapsed time.

Note that the output does not contain any estimation results, but minimum required data to estimate the models (Use summary() function to get the estimation).


[Package ldt version 0.5.3 Index]