blimp.run {misty} | R Documentation |
Run Blimp Models
Description
This function runs a group of Blimp models (.imp
files) located within a
single directory or nested within subdirectories.
Usage
blimp.run(target = getwd(), recursive = FALSE,
replace.out = c("always", "never", "modified"), posterior = FALSE,
folder = "Posterior_", format = c("csv", "csv2", "xlsx", "rds", "RData"),
clear = FALSE, Blimp = detect.blimp(), check = TRUE)
Arguments
target |
a character string indicating the directory containing
Blimp input files ( |
recursive |
logical: if |
replace.out |
a character string for specifying three settings:
|
posterior |
logical: if |
folder |
a character string indicating the prefix of the folder for
saving the posterior distributions. The default setting is
|
format |
a character vector indicating the file format(s) for saving the
posterior distributions, i.e., |
clear |
logical: if |
Blimp |
a character string for specifying the name or path of the Blimp executable to be used for running models. This covers situations where Blimp is not in the system's path, or where one wants to test different versions of the Blimp program. Note that there is no need to specify this argument for most users since it has intelligent defaults. |
check |
logical: if |
Value
None.
Note
This function is based on the detect_blimp()
and rblimp()
function
in the rblimp package by Brian T.Keller (2024).
Author(s)
Takuya Yanagida
References
Keller, B. T., & Enders, C. K. (2023). Blimp user’s guide (Version 3). Retrieved from www.appliedmissingdata.com/blimp
Keller B (2024). rblimp: Integration of Blimp Software into R. R package version 0.1.31. https://github.com/blimp-stats/rblimp
See Also
blimp
, blimp.update
, blimp.print
, blimp.plot
, blimp.bayes
Examples
## Not run:
# Example 1: Run Blimp models located within the current working directory
blimp.run()
# Example 2: Run Blimp models located nested within subdirectories
blimp.run(recursive = TRUE)
# Example 3: Run Blimp input file
blimp.run("Ex4.1a.imp")
# Example 4: Run Blimp input files
blimp.run(c("Ex4.1a.imp", "Ex4.1b.imp"))
# Example 5: Run Blimp models, save posterior distribution in a R workspace
blimp.run(posterior = TRUE, format = "workspace")
## End(Not run)