Learn R Programming

simsem (version 0.2-8)

plotScatter: Plot overlaying scatter plots visualizing the power of rejecting misspecified models

Description

This function will find the fit indices cutoff values if not specified and then plot the fit indices value against the value of predictors. The plot will include the fit indices value of the alternative models, the fit indices value of the null model (if specified), and the fit indices cutoffs.

Usage

plotScatter(altObject, nullObject=NULL, cutoff=NULL, usedFit = NULL, x, alpha=0.05, df=5)

Arguments

altObject
The result object (data.frame) saves the simulation result of fitting the hypothesized model when the hypothesized model is FALSE.
nullObject
The result object (data.frame) saves the simulation result of fitting the hypothesized model when the hypothesized model is TRUE. This argument may be not specified if the cutoff is specified.
cutoff
A vector of priori cutoffs for fit indices.
usedFit
Vector of names of fit indices that researchers wish to plot.
x
The data.frame of the predictor values. The number of rows of the x argument should be equal to the number of rows in the object.
alpha
A priori alpha level
df
The degree of freedom used in spline method in predicting the fit indices by the predictors. If df is 0, the spline method will not be applied.

Value

  • NONE. Only plot the fit indices distributions.

See Also

Examples

Run this code
# No example

Run the code above in your browser using DataLab