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
Writing likelihood function for interval based dataHi Statalist I am studying the determinants of unemployment spell, which is, in my study, explained …
How to move an active STATA15 licence from one device to anotherDear all, I need to move my STATA 15 licence from my current laptop to a new one. How do I need to p…
How to shuffle or randomly assign the values within each group?Hi everyone! This is my first time to post a question here. I am working on a historical population…
Formula to standardize a variable without "gen" and "egen"Hello, I am a French student who is starting to work with Stata 16, and I need to find a formulatio…
How to draw a graph for inverted U-shaped relationships like the graph presented below?Array My regression is: Y1=α1FD1+α2FD1^2+α3Controls, and the results showed this is a bell-shaped re…
Subscribe to:
Post Comments (Atom)
0 Response to MHTEXP*Theorem 3.1 Adjusted Values Extraction
Post a Comment