Skip to content

Computing join p-values manually #1

@federiconuta

Description

@federiconuta

Hi and thank you for your work on sorted effects.

Say I have a database having 2 variables, Coeff and Variable being Coeff the B CADiffs f several variables, say k (so that, overall the data contain k*B variables). I would liike to construct, starting from here, the joint p-values with your algorithm.
By studying the theoretical paper, I ended up with the following steps of which I am not fully sure (since the results I obtained are not as expected):

  1. Attach to the B*k dataset, the original coefficients (which have a unique value for each variable), say coeff_orig.
  2. Compute the difference between bootstrap coefficient (Coeff) and coeff_orig. This is Z_c.
  3. Construct sig for each variable as being the difference between the 75 and 25 quantile of Z_c (divided by the difference between the 75 and 25 quantiles of the standard normal)
  4. generate t_tilde = abs(Z_c)/sig
  5. generrate stat = abs(H_c)/sig where H_c = 2*Coeff_orig-draws_H_mean and draws_H_mean = mean(Coeff), by(Vaariable)
  6. count how many times, on average (on the number of bootstraps) and by variable, t_tilde>stat

Are these steps correct? If not, can you ,please, provide me further hints on how to compute the joint p-values starting from the mentioned dataset?

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions