| create_basis {geex} | R Documentation | 
Creates an m_estimation_basis object
Description
Creates an m_estimation_basis object
Usage
create_basis(estFUN, data, units, outer_args, inner_args)
Arguments
| estFUN | a function that takes in group-level data and returns a function that takes parameters as its first argument | 
| data | a data.frame | 
| units | an optional character string identifying the grouping variable in  | 
| outer_args | a list of arguments passed to the outer (data) function of  | 
| inner_args | a list of arguments passed to the inner (theta) function of  | 
Details
Either data or split_data must be provided
Value
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)
[Package geex version 1.1.1 Index]