plotLogitMiss {simsem} | R Documentation |
Visualize the missing proportion when the logistic regression method is used.
Description
Visualize the missing proportion when the logistic regression method is used. The maximum number of independent variables is 2. The extra independent variables will be fixed as a value (the default is 0).
Usage
plotLogitMiss(script, ylim=c(0,1), x1lim=c(-3,3), x2lim=c(-3,3), otherx=0,
useContour=TRUE)
Arguments
script |
The script used in specifying missing data using the logistic regression. See further details in the |
ylim |
The range of missing proportion to be plotted. |
x1lim |
The range of the first independent variable to be plotted |
x2lim |
The range of the second independent variable to be plotted |
otherx |
The value of the extra independent variables to be fixed as. |
useContour |
If there are two or more independent variables, the function will provide 3D graph. Contour graph is a default. However, if this is specified as |
Value
Not return any value. This function will plot a graph only. If the number of independent variable is 0, the bar graph is provided. If the number of independent variables is 1, the logistic curve is provided. If the number of independent variables is 2, contour or perspective plot is provided.
Author(s)
Sunthud Pornprasertmanit (psunthud@gmail.com), Alexander M. Schoemann (East Carolina University; schoemanna@ecu.edu)
See Also
Examples
script <- 'y1 ~ 0.05 + 0.1*y2 + 0.3*y3
y4 ~ -2 + 0.1*y4
y5 ~ -0.5'
plotLogitMiss(script)
script2 <- 'y1 ~ 0.05 + 0.5*y3
y2 ~ p(0.2)
y3 ~ p(0.1) + -1*y1
y4 ~ p(0.3) + 0.2*y1 + -0.3*y2
y5 ~ -0.5'
plotLogitMiss(script2)