lpmodel.beta.eval: Evaluates the point estimate and asymptotic variance of...

View source: R/lpmodel.R

lpmodel.beta.evalR Documentation

Evaluates the point estimate and asymptotic variance of beta.obs

Description

This function returns the matrix or vector depending on the class of the variable in the lpmodel object. In the design of the lpinfer module, objects in lpmodel can have three different types of classes:

  • function — If the object is a function, then the object that is evaluated by the function with the data will be returned.

  • list — If the object is a list, then the i-th element will be returned.

  • matrix or numeric — If the object is a matrix or a vector, then it will be directly returned.

Usage

lpmodel.beta.eval(data, obj, i)

Arguments

data

A data frame.

obj

An object in lpmodel.

i

An index.

Value

Returns the point estimate and the asymptotic variance of the beta.obs object.

beta.obs

The point estimate of \widehat{\bm{β}}_{\rm obs}.

omega

The estimator of the asymptotic variance for \widehat{\bm{β}}_{\rm obs}.


conroylau/lpinfer documentation built on Oct. 23, 2022, 9:21 a.m.