Learn R Programming

TMB (version 1.7.4)

as.list.sdreport: Convert estimates to original list format.

Description

Get estimated parameters or standard errors in the same shape as the original parameter list.

Usage

"as.list"(x, what = "", ...)

Arguments

x
Output from sdreport.
what
Select what to convert.
...
Passed to summary.sdreport.

Value

List of same shape as original parameter list.

Details

This function converts the selected column what of summary(x, select = c("fixed", "random"), ...) to the same format as the original parameter list (re-ordered as the template parameter order). The argument what is partially matched among the column names of the summary table. The actual match is added as an attribute to the output.

Examples

Run this code
## Not run: 
# example(sdreport)
# as.list(rep, "Est")
# as.list(rep, "Std")
# as.list(rep, "Pr", p.value=TRUE)
# ## End(Not run)

Run the code above in your browser using DataLab