Learn R Programming

robust2sls (version 0.2.2)

update_list: Append new iteration results to "robust2sls" object

Description

update_list takes an existing "robust2sls" object and appends the estimation results (ivreg model object, residuals, standardised residuals, selection and type vectors) of a new iteration.

Usage

update_list(current_list, new_info, name)

Value

An object of class "robust2sls" whose components $model, $res, $stdres, $sel, and $type are now appended with the new iteration results.

Arguments

current_list

A list object of class "robust2sls".

new_info

A list with named components $model, $res, $stdres, $sel, and $type.

name

A character vector of length one naming the appended iteration results. Convention is "m0", "m1", "m2" etc. for iterations 0 (initial), 1, 3...