| .first_pvalue | R Documentation |
Attempts to extract a single p-value from a variety of test result objects, including nested lists produced by functions in the vars package and related diagnostics.
.first_pvalue(x)
x |
An object potentially containing a p-value, such as:
|
The function recursively explores nested list components and attempts
to find a scalar p-value. Special handling is included for structures
like jb.mul$JB. If nothing suitable is found, NA_real_
is returned.
A numeric scalar with the first p-value found, or
NA_real_ if no p-value can be extracted.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.