Learn R Programming

geex (version 1.1.1)

roots: Gets the parameter estimates matrix from a geex object

Description

Gets the parameter estimates matrix from a geex object

Usage

roots(object, ...)

# S4 method for geex roots(object)

# S4 method for geex_summary roots(object)

Arguments

object

a geex object

...

arguments passed to other methods

Examples

Run this code
ex_eeFUN <- function(data){
 function(theta){
   with(data,
    c(Y1 - theta[1],
     (Y1 - theta[1])^2 - theta[2] ))
}}

results <- m_estimate(
 estFUN = ex_eeFUN,
 data  = geexex,
 root_control = setup_root_control(start = c(1,1)))

roots(results)

Run the code above in your browser using DataLab