Learn R Programming

simsem (version 0.2-8)

pValueVariedCutoff: Find a p value when the cutoff is specified as a vector given the values of predictors

Description

Find a p value when the cutoff is specified as a vector given the values of predictors.

Usage

pValueVariedCutoff(cutoff, obtainedValue, revDirec = FALSE, x = NULL, xval = NULL)

Arguments

cutoff
A vector of values used to find p values. Each value in the vector should be the target value conditional (applicable) to each value of the predictors (x) respectively.
obtainedValue
The comparison distribution, which can be a vector of numbers, a data frame, or a result object.
revDirec
A logical argument whether to reverse the direction of comparison. If TRUE, the proportion of the dist that is lower than target value is reported. If FALSE, the proportion of the dist that
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 dist
xval
the values of predictor that researchers would like to find the fit indices cutoffs from.

Value

  • A vector of p values based on the comparison.

See Also

Examples

Run this code
# No example

Run the code above in your browser using DataLab