Description Usage Arguments Value Examples
Perform an Anchor Stability Analysis as described in Rothenhäusler et al.2020
1 2 3 4 5 6 7 8 | anchor_stability(
x,
anchor,
target_variable,
lambda = 0,
alpha = 0.05,
p_procedure = "bootstrap"
)
|
x |
is a dataframe containing the matrix x containing the independent variables |
anchor |
is a dataframe containing the matrix anchor containing the anchor variable |
target_variable |
is the target variable name contained in the x dataframe |
lambda |
indicates the lambda that is used in the Anchor Regression. 'CV' is used if it should be estimated by cross validation on the full subset. |
alpha |
significance level for test decision on coefficient significance |
p_procedure |
procedure to estimate stability. Option 1: naive - stable if effect is non-zero in all cases; Option 2: post-lasso - post selection inference using SelectiveInference package |
A dataframe containing the stability values for each coefficient
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.