Re: Export tables to Excel
Hello,I am trying to use tab2xl to export frequency tables from stata to excel for multiple variables at once. do you have suggestions for a loop that can do this? I have triedlocal variables price mpg...
View ArticleRe: Automating web downloads and file unzipping
I was wondering if both of you received an answer to that question. Thanks!
View ArticleRe: Using Stata’s random-number generators, part 4, details
My business partners needed NY DTF ST-330 earlier this week and found a company with a searchable database . If you are requiring NY DTF ST-330 too , here's http://goo.gl/O0U361
View ArticleRe: Programming an estimation command in Stata: A first ado-command
what is the difference between specifying e2 as a safe name using tempvar and specifying it with tempname? They both seem to work.
View ArticleRe: Export tables to Excel
Hi,I'm using putexcel to export a matrix I created storing a number of results. I have given names to the columns and rows of the matrix, but the putexcel command is only saving the content of the...
View ArticleRe: Export tables to Excel
FYI, it's probably the fact that I'm very new to Stata, but I was getting option matcol() not allowedr(198);when trying to use tab2xl2
View ArticleRe: Export tables to Excel
Found my own answer further down the page, string variables don't work, so categorical variables need to be encoded. See from below:encode operator, generate(operator2)
View ArticleRe: Using Stata’s random-number generators, part 1
we seek to randomly allocate Don't know (9) answers, so that 1/4 (25%) of the them is valued as correct. We have a multiple choice question with 4 opportunities, but we already coded them 0/1 -...
View ArticleRe: Understanding omitted confounders, endogeneity, omitted variable bias,...
What is a projection model?(And why is it not an option to sign in using Stata???)
View ArticleRe: Programming an estimation command in Stata: Consolidating your code
Question about CRE with endogenous variables.Hi, I have been trying to reproduce some results you made available online related to non-linear panel data (I think for a workshop you did in Germany in...
View ArticleRe: Understanding omitted confounders, endogeneity, omitted variable bias,...
Hello Laura,The projection model is a special case of the regression model. So you can get results from a projection model using -regress-.The regression model assumes that the unobservables are, on...
View ArticleRe: Tests of forecast accuracy and forecast encompassing
The Clark and McCracken statistic tests competing nested parametric models. Diebold and Mariano's test is more general, in that the models need not be related. You could compare, for instance, an AR(1)...
View ArticleRe: Export tables to Excel
Molly, sorry for taking long to answer! I'm glad that you could find a solution anyway. It's always a good a idea to encode your categorical variables. Cheers!
View ArticleRe: Export tables to Excel
I am Houda , I have the same problem of how to export results of the cros-correlations and the AR(1) coefficient, this is a part of my code**********************************clear*set more offcd...
View ArticleRe: How to successfully ask a question on Statalist
Hello dear all,I got these results of hausman and Hsiai IIA tests:**** Hausman tests of IIA assumption (N=38555) Ho: Odds(Outcome-J vs Outcome-K) are independent of other alternatives. Omitted | chi2...
View ArticleRe: Tests of forecast accuracy and forecast encompassing
Very helpful discussion, thanks. Two quick inquiries: a) what is k2? b) what if the test statistics (F, t and ENC-NEW) are negative? Does that indicate non rejection of the null hypothesis?
View ArticleRe: Multiple equation models: Estimation and marginal effects using gsem
Thanks for a really interesting post. You use "vce(unconditional)" because, as you say, you are estimating a population rather than a sample effect. Is this motivated only by substantive interest, or...
View ArticleRe: Unit-root tests in Stata
thank you. Let me add that unit roots can be also at seasonal frequencies.Stata implements the test with quarterly data. here is the link to the reference paper: http://www.stata-journal.com/a...The...
View ArticleRe: Tests of forecast accuracy and forecast encompassing
Dear Syed,k2 is the number of extra predictors in the nesting model, VAR(2) in this case. Yes a negative test statistic indicates failure to reject the null hypothesis.Ashish
View Article