Learn R Programming

simsem (version 0.2-8)

pValueCondCutoff: Find a p value when the target is conditional (valid) on a specific value of a predictor

Description

Find a p value when the target is conditional (valid) on a specific value of a predictor. That is, the target value is applicable only a given value of a predictor.

Usage

pValueCondCutoff(target, dist, revDirec = FALSE, x = NULL, xval = NULL, df = 0)

Arguments

target
A target value used to find p values.
dist
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.
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

  • 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