create_psiFUN_list {geex}R Documentation

Creates list of psi functions

Description

Creates the estimating function (\psi(O_i, \theta)) for each unit. That is, this function evaluates the outer function in estFUN for each independent unit and a returns the inner function in estFUN.

Usage

create_psiFUN_list(object, ...)

## S4 method for signature 'm_estimation_basis'
create_psiFUN_list(object)

Arguments

object

an object of class m_estimation_basis

...

additional arguments passed to other methods

Value

the object with the .psiFUN_list slot populated.

Examples

myee <- function(data){
   function(theta){
    c(data$Y1 - theta[1],
     (data$Y1 - theta[1])^2 - theta[2])
   }
 }
mybasis <- create_basis(
   estFUN = myee,
   data   = geexex)
psi_list <- grab_psiFUN_list(create_psiFUN_list(mybasis))

# A list of functions
head(psi_list)

[Package geex version 1.1.1 Index]