Hi Stata/Mata users,
I have the following issue. I have to adjust t-tests for size so that their true size equals the nominal size, and then compute the relative p-values. I aim to estimate the power of size-adjusted tests.
What I have done so far does not involte any size-adjustment. In fact, I obtained the t-statistics as follows
m: t = b:/se
and, then, computed the relative p-values
m: pvalue = 2*ttail(N-k, abs(t)).
However, I get size-uncorrected power tests when I compute the rejection rates based on those p-values. So, the naive comparison of powers is completely uniformative.
I would like to know how I have to proceed to get the empirical critical values that must be used to set the rejection rule. That is, is there a function like ttail() which computes the probability that the t statistics - computed as specified above - exceed the critical value of the statistics from the empirical distribution?
Thank you for any advice you can give me.
Related Posts with Adjust tests for size in Mata
Choice models -cmxtmixlogit- command for including random parameter for one of the alternatives (the base/status quo alternative)I am having trouble with the new stata 16 cmxtmixlogit command. I am trying to estimate a choice mo…
Estimation using only one out of many categorical variables without dropping the restDear members, My dataset contains 4 countries and I'd like to run a regression using only one of th…
define column width in xl() "open" depending on values (reals & strings)?Hi! How may I define the column width for each column depending on the maximum length of the charac…
Margin effects with multinomial logistic regressionHi dear Statalisters, I am running a mlogit model with interaction effects between categorical vari…
Moderation effectHi Everyone, I am running a panel model using population averaged model. I have different hypothese…
Subscribe to:
Post Comments (Atom)
0 Response to Adjust tests for size in Mata
Post a Comment