Hi everyone,
I have been trying to create a matrix of List's MHT adjusted p-values that I get after running the mhtexp command but I can't seem to be able to do so. Please would you help me find the mistake? Something is probably wrong with the specification of the matrices in the last line.
gen Treat1=0
replace Treat1=1 if incentivize==1
replace Treat1=2 if spillover==1
replace Treat1=3 if spillovercontrol==1
mhtexp $Demographics, treatment(Treat1)
matlist results
matrix define D == results
matlist D
local i=0
foreach var in $Demographics {
local i=`i'+1
display `i'
forvalues j=1(1)8{
local j = [(`j'-1)*3 +1]
display `j'
matlist D
matrix A = J(8,2,.)
matlist A
mat A[`i', 1] = mat D[`j', 1]
mat A[`i', 3] = mat D[`j', 3]
}
}
Thanks a million,
kind regards,
Related Posts with MHTEXP*Theorem 3.1 Adjusted Values Extraction
GMM estimation: when one of dependent variables minus a constantDear everyone, I had noticed a very interesting phenomenon in GMM estimation, which I can't figure …
Results from a loop with quarterly and weekly data are different in relation to the sort of data: What is happening here?Hi I have a dataset that includes a quarterly_macro variable which is the same for each week of the…
Comparing string values within the same variableHi folks, I have a database with +70k observations. I am looking at school principals turnover of +…
how to use bysort with function total and tabI have data include varables ( year , Event_Type , Loss_Amount__USD ) I want state to to sort the d…
Plotting Different Regression Values in One Graph with CoefplotHello there, I'm currently running a series of regressions using US State data. So far, I've create…
Subscribe to:
Post Comments (Atom)
0 Response to MHTEXP*Theorem 3.1 Adjusted Values Extraction
Post a Comment