pvalues | R Documentation |
Extract set and predictor p-values from tramicp outputs
pvalues(object, which = c("predictor", "set", "all"))
object |
Object of class |
which |
Which p-values to return, |
Predictor p-values are computed from the set p-values as follows: For each predictor j as the largest p-value of all sets not containing j.
Numeric vector (or list in case which = "all"
) of p-values
set.seed(123)
d <- dgp_dicp(n = 1e3, mod = "polr")
res <- polrICP(Y ~ X1 + X2 + X3, data = d, env = ~ E, type = "wald")
pvalues(res, which = "predictor")
pvalues(res, which = "set")
pvalues(res, which = "all")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.