Process Credible Set Information and Determine Updating Strategy
Source:R/univariate_rss_diagnostics.R
auto_decision.RdThis function categorizes Credible Sets (CS) within a study block into different updating strategies based on their statistical properties and correlations.
Value
A modified data frame with additional columns attached to the diagnostic table:
- top_cs
Logical. TRUE for the CS with the highest absolute Z-score.
- tagged_cs
Logical. TRUE for CS that are considered "tagged" based on p-value and correlation criteria.
- method
Character. The determined updating strategy ("BVSR", "SER", or "BCR").
Details
This function performs the following steps: 1. Identifies the top CS based on the highest absolute Z-score. 2. Identifies tagged CS based on high p-value and high correlations. 3. Counts total, tagged, and remaining CS. 4. Determines the appropriate updating method based on these counts.
The updating methods are: - BVSR (Bayesian Variable Selection Regression): Used when there's only one CS or all CS are accounted for. - SER (Single Effect Regression): Used when there are tagged CS but no remaining untagged CS. - BCR (Bayesian Conditional Regression): Used when there are remaining untagged CS.