Dear STATA users,
I want a simple table output in word, however i can't seem to create it by just STATA commands.
Situation sketch:
- Three variables (X,Y,Z)
Command used:
. outreg2 using "Table 1.doc", replace sum(log) keep (X Y Z) eqkeep(mean sd min max)
This is almost perfect, but i also want to add another column containing values from a different test, sktest --> (Prob>Chi2)
Command used:
sktest( X Y Z )
This gives me a matrix of [3,4]
Is there a command in which i can add this matrix to the existing Table 1.doc ?
- I've searched this whole forum and tried many different things like:
1. Adding the whole matrix to the outreg2 function with: addstat(Pvalues,r(Utest))
2. Storing the last column of the matrix and adding it with outreg2: addstat(Pvalues,`matA')
I've been able to add scalars with the outreg2 function, however these will appear as a row.
I've been trying to add this with tabstat, but i haven't been successful with this as well.
I think i may be thinking in the wrong direction.
Kind regards
Mark
Related Posts with Simple table output
Difference-in-Difference with a series of cross section data*Hello, everyone! I am fairly bad at Stata and it's been some time since I attended any econometrics…
Issue creating adjacency matrixHello I am attempting to replicate the proposed solution to creating an adjacency matrix provided by…
Balance test with categorical variablesDear Statalist - Community, I conduct an analysis using a difference-in-differences estimation stra…
Troubles with Propensity score matching and synth_runnerHello! I'm fairly new to stata so there are a few things that I am not sure how to do. I am currentl…
Collapse Weight NormalizationThe stata manual for collapse (p. 7) states that using aweight when calculating the sum with collaps…
Subscribe to:
Post Comments (Atom)
0 Response to Simple table output
Post a Comment