Learn R Programming

fb4package (version 2.0.0)

sdr_pull_vec: Pull a vector of estimates and SEs from an sdreport summary

Description

Extracts the first n rows whose name matches name from sdr_summary, returning both estimates and standard errors. Used for per-individual variables in the hierarchical model.

Usage

sdr_pull_vec(sdr_summary, name, n)

Value

Named list with estimates and ses (length-n

numeric vectors; filled with NA_real_ when rows are missing)

Arguments

sdr_summary

Matrix returned by summary(TMB::sdreport(obj))

name

Row name to look up (may appear multiple times)

n

Number of elements expected