table_profile: Summarize profile results of parameters

View source: R/table_profile.R

table_profileR Documentation

Summarize profile results of parameters

Description

Summarize profile results of parameters

Usage

table_profile(summarylist, pargrep)

Arguments

summarylist

A list of summarized Report.sso files.

pargrep

A character value to search for using grepl on the column summarylist[["Label"]].

Author(s)

Kelli F. Johnson

Examples

## Not run: 
# Read in models
profilemodels <- SSgetoutput(
  dirvec = mydir,
  keyvec = 1:((dir(mydir,pattern="^Report") %>% length)-1)
)
# Summarize output
profilesummary <- SSsummarize(profilemodels)
table_profile(profilesummary, pargrep = "NatM") %>%
knitr::kable(
  format = "latex",
  align = "r",
  position = "H",
  digits = 3,
  booktabs = TRUE,
  longtable = FALSE,
  caption = "Parameter estimates of natural mortality, $M$, from the likelihood profile over $M_{female}$ showing the correlation between the two parameters.",
  label = "profile-M",
  escape = FALSE,
  linesep = ""
) %>%
kableExtra::save_kable(
  file = file.path(profilemodels$replist1$inputs$dir, "profile-M.tex")
)

## End(Not run)

iantaylor-NOAA/Lingcod_2021 documentation built on Oct. 30, 2024, 6:42 p.m.