Quantcast
Channel: The Stata Blog - Latest Comments
Browsing all 1125 articles
Browse latest View live

Re: Web scraping NFL data into Stata

Reynaldo, it looks like the NFL data is going to be a pay API from now on and this command no longer works.

View Article


Re: Creating Excel tables with putexcel part 3: Writing custom reports for...

instead of char() consider using excelcol(). Check a demonstration here https://www.statalist.org/f...

View Article


Re: Creating Excel tables with putexcel part 3: Writing custom reports for...

You need to incrementally increase column name by the number of columns in the previous Y variable. Check https://www.statalist.org/f...

View Article

Re: Creating Excel tables with putexcel part 3: Writing custom reports for...

Check excelcol() function. https://www.statalist.org/f...

View Article

Re: Monte Carlo simulations using Stata

I am analyzing panel dynamic model using xtabond2. my data run for 40 years (1980-2018, but grouped into five year intervals to reduce serial correlation. i know how to invoke the bootstrap option but...

View Article


Re: Export tabulation results to Excel—Update

There is a syntax error in tab2docx that affects the output when -set varabbrev off- is denoted. More information can be found here. https://www.statalist.org/f...

View Article

Re: Stata support for Apple Silicon

Had missed this post but good to see. With Apple all but eliminating the divide between Mac OS X and iOS, do you plan to enable Stata to work on higher-end iPads?

View Article

Re: Import COVID-19 data from Johns Hopkins University

Hi, is it possible to import to Stata from a private repo?

View Article


Re: Import COVID-19 data from Johns Hopkins University

There is currently no way for Stata to -webuse- a GitHub repo that isflagged private, due to the authentication needed to access thefiles. A potential workaround would be to create a personal...

View Article


Re: Import COVID-19 data from Johns Hopkins University

Thanks. Does this mean going through Terminal? Because I understand the token changes from session to session/time to time.

View Article

Re: Import COVID-19 data from Johns Hopkins University

Yes, you need to write the call to the GitHub repository so it can be called from the Terminal interface and/or using the -shell- command in Stata.

View Article

Re: Stata/Python integration part 1: Setting up Stata to use Python

Thank you Chuck for this post. I was trying to install the geopandas package using the stata environment. I was not able to install it and I was evening thinking to switch to R. This post encouraged me...

View Article

Re: Export tables to Excel

Hi Kevin,I am using putexcel to tabulate a number of variables on a number of subsets of my data. Some of those subsets do not contain all potential values on certain variables. An easy example is a...

View Article


Re: Export tables to Excel

Just as a follow up, I believe I found a suitable fix using the user-written command 'fre' , where you can specify all values to be tabulated. I thought I would post it here in case anyone ran into a...

View Article

Re: Export tabulation results to Excel—Update

Can you post the command you are using so I can see the syntax?

View Article


Re: Export tables to Excel

You can check r(r) after tabulate and see how many levels there are in your variable and then use if for your labels.if (`r(r()' ==2) {B4 = "Female" /// B5 = "Male"}else {....B4 = "Female"....}

View Article

Re: A simulation-based explanation of consistency and asymptotic normality

Nice explanation. Thank you!

View Article


Re: Stata/Python integration part 1: Setting up Stata to use Python

This is cool in concept but it seems buggy. I was able to correctly get python up and running, and I even pointed stata to the correct installation of python on my mac, but if I try to import packages...

View Article

Re: Stata/Python integration part 5: Three-dimensional surface plots of...

An added comment to this figure.If you add plt.show(), you can see the figure rendered, which you can also manipulate and rotate. This may come handy if you are a visual person, and were not sure how...

View Article

Re: Calculating power using Monte Carlo simulations, part 3: Linear and...

Wow I'm glad I found this article. you describe everything really well.

View Article
Browsing all 1125 articles
Browse latest View live