create_psiFUN_list-methods: Creates list of psi functions

create_psiFUN_listR Documentation

Creates list of psi functions

Description

Creates the estimating function (ψ(O_i, θ)) 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)

geex documentation built on Aug. 8, 2022, 5:05 p.m.