create_basis | R Documentation |
Creates an m_estimation_basis object
create_basis(estFUN, data, units, outer_args, inner_args)
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 |
Either data
or split_data
must be provided
a m_estimation_basis
myee <- function(data){ function(theta){ c(data$Y1 - theta[1], (data$Y1 - theta[1])^2 - theta[2]) } } mybasis <- create_basis( estFUN = myee, data = geexex)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.