update_list: Append new iteration results to '"robust2sls"' object

View source: R/utility.R

update_listR Documentation

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)

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...

Value

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


robust2sls documentation built on Jan. 11, 2023, 5:13 p.m.