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

Re: Web scraping NFL data into Stata

Can you post the exact command you are typing and the exacterror that nfl2stata is returning?

View Article


Re: Web scraping NFL data into Stata

nfl2stata scrape, season(_all)Starting to pull data. This will take a while...Processing 2009 game summary: [x/21 requests].........x.........x.invalid 'Support'

View Article


Re: Export tables to Excel

I have a problem with tab2xl, it shows invalid syntax, and when I change the excel name, it begin says excel file open but i didn't open any excel file. Can someone help me?

View Article

Re: Creating Excel tables with putexcel, part 2: Macro, picture, matrix, and...

any advice on how to put multiple outputs in one cell? ie a column of "Mean +/- SD"

View Article

Re: Creating Excel tables with putexcel, part 2: Macro, picture, matrix, and...

or "Median (IQR)" etc

View Article


Re: Web scraping NFL data into Stata

I'm having this same issue for every year while it's scrapping.

View Article

Re: Web scraping NFL data into Stata

". nfl2stata scrape, season(2018)Starting to pull data. This will take a while...Processing 2018 game summary: [x/21 requests].........x.........x.invalid 'Support' Processing 2018 profiles: [x/24...

View Article

Re: An introduction to the lasso in Stata

This is super clear. But one thing you do not explain is why you would prefer the post selection estimates to predict. Might you expand on when one should use the postselection estimates for this...

View Article


Re: An introduction to the lasso in Stata

Other question: are there rules of thumb one can use to determine how one should split the data into training and testing subsamples. Imagine one has a lot of data (say 500K observations)....

View Article


Re: Introduction to Bayesian statistics, part 2: MCMC and the...

This is a brilliant tutorial. I feel like I finally understood MCMC after days of trying. Thanks a lot!

View Article

Re: An introduction to the lasso in Stata

Thank you for your question, Pierre. The post-selection coefficients are less biased than the penalized coefficients by definition. In the linear model, the post-selection coefficients may have better...

View Article

Re: An introduction to the lasso in Stata

As far as I know, there is no such rules of thumb to determine the ratio between training sample and testing sample. Intuitively, more training data should not hurt because the selected model may...

View Article

Re: Export tabulation results to Excel—Update

I keep getting the error message "option percentage not allowed" after I run the command:tab2xl var1 sex [w=wt] using test, row(2) col(2) replace percentageI updated to the latest command but I have...

View Article


Re: Multilevel linear models in Stata, part 1: Components of variance

Hey, I am writing on Master´s Thesis and wondering if it is also possbile to calculate the R² for three level models by just adding the variance coefficient of the third level in the formula.I cannot...

View Article

Re: Understanding omitted confounders, endogeneity, omitted variable bias,...

Hi, how i can gerate 4 variables in STATA that:y is the dependent variablex1 independet variableD is a dummy(independent variable) that takes the value 1 if , for example have good job and 0 if bad...

View Article


Re: Export tabulation results to Excel—Update

Hello Everyone.I am currently using this package in stata 16. But it only works with oneway tabulations. I can't get it to work with twoway tabulations. It just says "invalid syntax" byt the syntax...

View Article

Re: Calculating power using Monte Carlo simulations, part 2: Running your...

Parts 3 (Linear & logistic regression) and 4 (Multilevel/longitudinal models) are now available at the links given below.https://blog.stata.com/2019...https://blog.stata.com/2019...

View Article


Re: Export tabulation results to Excel—Update

Run net install http://www.stata.com/users/..., replace. There was an issue with the current version for users.

View Article

Re: Export tabulation results to Excel—Update

Run net install http://www.stata.com/users/..., replace. There was an issue with the current version for users.FYI: The updated version does not support weighted percentages.

View Article

Re: Export tabulation results to Excel—Update

This indicates that there is already an existing excel file handle. This usually happens if tab2xl gets into an error-state. To fix: run the putexcel close command.

View Article
Browsing all 1125 articles
Browse latest View live