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
Generating variables t-4 to 5Dear Statalisters, I am new to Stata and have been trying to generate the following variable. Varia…
Nearstat Error MessageDear Statalist-Community, I am trying to calculate the distance between two datsets using their lat…
Install Unix stata on Ubuntu in Windows Subsystem for Linuxl'm trying to install Stata on a unix kernel (unbuntu 20.10) installed on WSL on Windows 10 and i ge…
Weakly balanced panelMy data looks like this. ----------------------- copy starting from the next line ------------------…
Two-way fixed effects and multiple FEs (some questions to clear things up with the models used)Dear Stata Community: I am new to Stata, and have begun gathering information as to how to run fixe…
Subscribe to:
Post Comments (Atom)
0 Response to MHTEXP*Theorem 3.1 Adjusted Values Extraction
Post a Comment