qgraph.semModel {qgraph}R Documentation

qgraph: SEM model pathdiagram

Description

This is a watered down version of qgraph.sem that only plots a diagram. It is called if a "mod" object is supplied to qgraph

Usage

qgraph.semModel(mod, manifest = NULL, layout = "spring", vsize.man = 3, vsize.lat = 6, residuals = TRUE, latres = TRUE, curve = 0.2, residSize = 0.2,...)

Arguments

mod

A "mod" object (model of the sem package (Fox; 2010) or a "sem" object

manifest

Vector containing the names of the manifest variables

layout

The layout used for the path diagram. Can be "tree", "spring", "circle" and "springtree". Defaults to "spring"

vsize.man

Size of the manifest variables in the path diagram

vsize.lat

Size of the latent variables in the path diagram

residuals

Logical indicating if the residuals should be included in the path diagram. If this is FALSE then residual variances will be shown as colors on the nodes. Default is TRUE

latres

This is currently not supported, leave to TRUE

curve

Numerical value indicating the curve of edges that are on the same level in the "tree" layout, See details. This represent an offset from the middle of the straight edge through where the curved edge must be drawn. 0 indicates no curve, and any other value indicates a curve of that strength. Defaults to 0.2

residSize

Size of the residual arrows

...

Arguments passed to qgraph

Author(s)

Sacha Epskamp (qgraph@sachaepskamp.com)

References

Sacha Epskamp, Angelique O. J. Cramer, Lourens J. Waldorp, Verena D. Schmittmann, Denny Borsboom (2012). qgraph: Network Visualizations of Relationships in Psychometric Data. Journal of Statistical Software, 48(4), 1-18. URL http://www.jstatsoft.org/v48/i04/.

John Fox with contributions from Adam Kramer <jfox@mcmaster.ca> and Michael Friendly (2010). sem: Structural Equation Models. R package version 0.9-21. http://CRAN.R-project.org/package=sem

See Also

qgraph

Examples


## Not run: 
##D 
##D require('sem')
##D 
##D ### This example is taken from the examples of the sem function. 
##D ### Only names were changed to better suit the path diagram.
##D 
##D # ----------------------- Thurstone data ---------------------------------------
##D #  Second-order confirmatory factor analysis, from the SAS manual for PROC CALIS
##D 
##D R.thur <- readMoments(diag=FALSE, names=c('Sen','Voc',
##D         'SC','FL','4LW','Suf',
##D         'LS','Ped', 'LG'))
##D     .828                                              
##D     .776   .779                                        
##D     .439   .493    .46                                 
##D     .432   .464    .425   .674                           
##D     .447   .489    .443   .59    .541                    
##D     .447   .432    .401   .381    .402   .288              
##D     .541   .537    .534   .35    .367   .32   .555        
##D     .38   .358    .359   .424    .446   .325   .598   .452  
##D             
##D model.thur <- specifyModel()
##D     F1 -> Sen,               *l11, NA
##D     F1 -> Voc,               *l21, NA
##D     F1 -> SC,                *l31, NA
##D     F2 -> FL,                *l41, NA
##D     F2 -> 4LW,               *l52, NA
##D     F2 -> Suf,               *l62, NA
##D     F3 -> LS,                *l73, NA
##D     F3 -> Ped,               *l83, NA
##D     F3 -> LG,                *l93, NA
##D     F4 -> F1,                *g1,  NA
##D     F4 -> F2,                *g2,  NA
##D     F4 -> F3,                *g3,  NA 
##D     Sen <-> Sen,             q*1,   NA
##D     Voc<-> Voc,              q*2,   NA
##D     SC <-> SC,               q*3,   NA
##D     FL <-> FL,               q*4,   NA
##D     4LW <-> 4LW,             q*5,   NA
##D     Suf<-> Suf,              q*6,   NA
##D     LS <-> LS,               q*7,   NA
##D     Ped<-> Ped,              q*8,   NA
##D     LG <-> LG,               q*9,   NA
##D     F1 <-> F1,               NA,     1
##D     F2 <-> F2,               NA,     1
##D     F3 <-> F3,               NA,     1
##D     F4 <-> F4,               NA,     1
##D 
##D 
##D 
##D # Run qgraph:
##D qgraph(model.thur)
##D 
##D # Tree layout:
##D qgraph(model.thur,layout="tree",manifest=c('Sen','Voc','SC','FL','4LW','Suf','LS','Ped', 'LG'))
##D 
## End(Not run)


[Package qgraph version 1.2 Index]