gadgetFileIO.Rd
read.gadget.likelihood
reads the likelihood (input) file for gadget. The format of
the likelihood file is described in gadget's user manual.
read.gadget.data
reads data used by the various components
read.gadget.wgts
reads the output from iterative weighting likelihood output
read.gadget.grouping
reads the the likelihood grouping from the WGTS folder
read.gadget.likelihood(files = "likelihood")
write.gadget.likelihood(
lik,
file = "likelihood",
data.folder = NULL,
bs.sample = NULL
)
get.gadget.likelihood(likelihood, comp, inverse = FALSE)
read.gadget.main(file = "main")
write.gadget.main(main, file = "main")
clear.spaces(text)
read.gadget.data(likelihood, debug = FALSE, year_range = NULL)
strip.comments(file = "main")
read.gadget.wgts(
params.file = "params.in",
wgts = "WGTS",
likelihood = "likelihood",
lik.pre = "lik.",
params.pre = "params.",
parallel = FALSE
)
read.gadget.grouping(lik = read.gadget.likelihood(), wgts = "WGTS")
a vector of character strings containing the names of the likelihood files
old style gadget likelihood object
location of the gadget input file
location of data folder (if changed)
(for bootstrap), appends the appropriate replicate number to data file
likelihood file
selected likelihood components
(logical) should inverse selection be applied
gadget.main object
string
should debug information be printed
limit the years read in
base parameter file
logcation of the WGTS folder
strings matching the likelihood output
strings matching the parameter estimates
should the files be read in parallel
object of class gadget.likelihood, i.e. a list containing the various likelihood components
character string corresponding to the likelihood file (if desired)
likelihood object
object of class gadget.main
text of the main file (if desired)
list or matrix containing the (non-empty) values from the string
list of dataframes and degress of freedom
list containing the lines from the file stripped of unwanted text.
data.frame with parameter estimates and likelihood output from the iterative reweighting folder.
list of wgts groupings