hello everyone. Any comand for oldest stata versions like 14.0 ? I´m looking for some command to send the stata tables to excel, the most simply form posible.
Re: Export tabulation results to Excel—Update
Re: New Wooldridge edition just made available
My name is Nancy Medina. I am a PhD student at FLACSO-ECUADOR and a professor at the Central University of Ecuador.
Please if you can help me. I need to estimate a probit model with panel data and instrumental variables, it is the second part (instrumental variables) where I have a problem. Thank you very much
Re: Introduction to Bayesian statistics, part 1: The basic concepts
Very nice explanation. Could you please share details on survival analysis with hierarchical bayesian approach, please.
Re: Vector autoregressions in Stata
Hi. Im loking for a comand to identify if a VAR model is Homocedasticity...would please help me.
Re: Fun with Frames
Dear Chuck
Thank you very much. This was very interesting. While I haven't use or needed this type of data management in the past, i can see some potential uses towards the future!.
Best
Re: Calculating power using Monte Carlo simulations, part 3: Linear and logistic regression
This is an excellent article, assumptions and explanation are really so good, All your contributions are very useful for professionals and non-professionals. Thnaks a lot for sharing a awesome article, Keep on posting.
Re: Introduction to Bayesian statistics, part 2: MCMC and the Metropolis–Hastings algorithm
One hack of a tutorial. Thanks for sharing
Re: An introduction to the lasso in Stata
Where can I locate the datasets used in the Blog so that I can run the examples?
Re: An introduction to the lasso in Stata
can you make a pdf, really difficult to read from screen
Re: Introduction to treatment effects in Stata: Part 1
what is the interpretation of OME1, OME2 and TME1?
Re: Compatibility and reproducibility
I read you post but you talk only about the data sets and not about the gph files produced by the newest versions of Stata... And there are incompatibilities.
Re: Web scraping NFL data into Stata
Hey @Kevin Crow , is there any way to download the 2019 season data with this command? It still loads data only up to the 2018 season.
Re: Web scraping NFL data into Stata
In fact, I just realized it doesn't load the full 2018 season stats. Not sure until what week, but definitely not the whole regular season.
Re: Adding recession shading to time-series graphs
For anyone looking for a quicker solution, check out the -nbercycles- package:
freduse A191RO1Q156NBEA, clear
gen yq = qofd(daten)
tsset yq, quarterly
nbercycles A191RO1Q156NBEA, file(temp.do) replace
Re: An introduction to the lasso in Stata
Hi, Thanks for this. But its a bit unclear how to see the actual list f variables selected at the end under each model. I just see Added A ... but how do I see the full list of variables selected under a specific model. thanks
Re: Creating Excel tables with putexcel part 3: Writing custom reports for arbitrary variables
Agreed! I've been trying to add a foreach loop to tabulate multiple variables and have them appear below prior variables but it just keeps overwriting the table
Re: Adding recession shading to time-series graphs
I find this traditional treatment of referencing contractionary periods to be quite misleading. For instance, notice how the 2007-2009 Great Recession is shown to be as important as the 1981-1982 recession. But the 1981-1982 recession was only mild by comparison to the 2007-2009 recession, so it is a mistake to encode these two as equally important.
The problem with the traditional approach is that these areas encode the length of the recession and not their severity. As an alternative approach, please see my analysis at Graph Workflow on how one can encode both the length and the severity of a recession: https://graphworkflow.com/2019/11/04/contractions-recoveries/
Re: Flexible discrete choice modeling using a multinomial probit model, part 2
I know this is an old post, I just wanted to report that the posted code does not allow to reproduce the posted results. Here below the output obtained using Stata 14.2. The marginal effects computed using estat mfx, varlist(age)
can be reproduced, the same is not true when using manual calculation of these effects:
. estat mfx, varlist(age)
Pr(choice = 1) = .195219
-------------------------------------------------------------------------------
variable | dp/dx Std. Err. z P>|z| [ 95% C.I. ] X
-------------+-----------------------------------------------------------------
casevars |
age | -.378961 .00669 -56.64 0.000 -.392073 -.365848 3.9953
-------------------------------------------------------------------------------
Pr(choice = 2) = .5864454
-------------------------------------------------------------------------------
variable | dp/dx Std. Err. z P>|z| [ 95% C.I. ] X
-------------+-----------------------------------------------------------------
casevars |
age | .363996 .006009 60.58 0.000 .352218 .375773 3.9953
-------------------------------------------------------------------------------
Pr(choice = 3) = .21831866
-------------------------------------------------------------------------------
variable | dp/dx Std. Err. z P>|z| [ 95% C.I. ] X
-------------+-----------------------------------------------------------------
casevars |
age | .015001 .004654 3.22 0.001 .00588 .024123 3.9953
-------------------------------------------------------------------------------
.
. preserve
.
. * Sample and alternative-specific means:
. collapse (mean) age hhinc price, by(alt)
.
. generate id=1
.
. * Computing numerical derivative of the predicted
. * probability with respect to -age-:
. scalar h = 1e-5
.
. clonevar age_clone = age
. qui replace age = age_clone + h
. qui predict double pr_ph
. qui replace age = age_clone - h
. qui predict double pr_mh
. qui generate dpdx = (pr_ph-pr_mh)/(2*h)
.
. * Results:
. list alt dpdx in 1/3, sepby(id)
+-----------------+
| alt dpdx |
|-----------------|
1. | 1 -.1003581 |
2. | 2 .0978565 |
3. | 3 .0025016 |
+-----------------+
.
. restore
Re: Bayesian inference using multiple Markov chains
Excellent stuff Nikolay! THANKS
Re: Bayesian inference using multiple Markov chains
Hi, the ref McElreath, R. 2016. Statistical Rethinking: A Bayesian Course with Examples in R and Stan. Boca Raton, FL: CRC Press, Taylor and Francis Group. is a fantastic and illuminating read and there are YouTube (20 one hour videos by the same author) which are worth a look.