Learn R Programming

gimme (version 0.1-1)

semigimme: Semi-confirmatory group iterative multiple model estimation.

Description

This function identifies structural equation models consisting of group- and individual-level paths. The unique feature of this function is the ability to specify relations (paths) with which to begin model estimation.

Usage

semigimme(paths = ,
          data = "", 
          sep = "", 
          header = , 
          out = "",
          ar = FALSE, 
          plot = TRUE)

Arguments

paths
Comma separated vector containing paths with which to begin estimation, written in the style of lavaan syntax. That is, Y~X indicates that Y is regressed on X, or X predicts Y. If no header is used, then variables should be referred to with VAR followed (
data
Path to the directory where the data files are located. Each file must contain one matrix for each individual containing a T (time) by p (number of variables) matrix where the columns represent variables and the rows represent time.
sep
The spacing of the data files. "" indicates space-delimited, "/t" indicates tab-delimited, "," indicates comma delimited.
header
Logical. Indicate TRUE for data files with a header.
out
The path to the directory where the results will be stored. This directory must be generated by the user prior to running the function.
ar
Logical. If TRUE, begins search for group model with autoregressive (AR) paths open. Defaults to FALSE.
plot
Logical. If TRUE, graphs depicting relations among variables of interest will automatically be created. Defaults to TRUE.

Value

  • all.elements.summaryContains summary information for paths identified at the group- and individual-level.
  • all.elementsContains information for all paths identified at the group- and individual-level.
  • all.fitContains model fit information for individual-level models.

Examples

Run this code
semigimme.out <- semigimme(paths=c("VAR10~VAR6","VAR8~VAR3lag","VAR4~VAR3"),
                 data = "C:/data100",
                 sep = ",",
                 header = FALSE,
                 out = "C:/data100_semigimme_out",
                 ar = TRUE,
                 plot = TRUE)

Run the code above in your browser using DataLab