Is there a way to get a similar command but for MLB?
Re: Web scraping NBA data into Stata
Re: Export tables to Excel
Hi,
I tried the tab2xl but It tells me that I need Stata 15 to run it. I have Stata 14.2.
Is there any other way to export a two variable tabulation from Stata to excel?
I am trying to export a table of 76x76 and it is really frustrating with Stata.
When I use tabulate it provides several different tables.
For example the first table only provide the first 20 rows and the first 20 columns, the second table, the first 20 rows and the 21 to 40 columns... and so on.
I need to be able to see the 76x76 matrix with the counts at the intersections
Thanks
Re: Estimating the parameters of DSGE models
I got the same error message when running the command. I could not find the problem. Can you help me to find the solution for me that the software shows me the result
Thanks
Re: Export tabulation results to Excel—Update
Did you solve this issue?
Re: Dynamic stochastic general equilibrium models for policy analysis
please help me
when i insert dsge command dsge (ip = {alpha}*E(F.r) + e)
i find this no state variables found
how do i process ?
Re: Dynamic stochastic general equilibrium models for policy analysis
i'm on stata 15.0
Re: Creating Excel tables with putexcel, part 2: Macro, picture, matrix, and formula expressions
Very helpful
How to use putexcel with ineqdeco?
thank in advance
Re: Export tables to Excel
When I tab2xl an empty table, I get an error message. Is there a way around this?
Re: Export tabulation results to Excel—Update
Hi, thank you so much for your command tab2xl, it is so helpful.
However, I've got the same problem 'option open not allowed' error massage reported.
In my personal computer, it works fine. But in my company, Stata is shared in network and it doesn't work. I ask for an update to get Stat 15.1 but the problem remains.
Thank you in advance for your help.
Re: Creating Excel tables with putexcel part 3: Writing custom reports for arbitrary variables
Hi Chuck,
Super useful! Really liked the part on how to specify columns, using char(64+...). I wish Stata would allow Cell(x, y) syntax (as in VBA). When the number of columns is larger than 26 (beyond column Z), one has to do more, such as using the mod function to decide what the double letters should be. Or is there a simpler way doing ? One of the data that I worked with has more than a couple hundred columns.
Re: Use poisson rather than regress; tell a friend
"Actually regression does assume the variance is constant but since we are working the logs, that amounts to assuming that Var(yj) is proportional to yj"
I've been looking for a reference on that point exactly. Is there a source that elaborates/proves that point?
Re: Export tables to Excel
Maybe you can try with a loop as is shown here:
https://stackoverflow.com/q...
Re: Export tables to Excel
then, after you get your matrix , you can use mat2txt
Re: Estimation under omitted confounders, endogeneity, omitted variable bias, and related problems
I am writing this blog and would like to get somebody's help me with 2sls and 3sls in stata.
Here is my question
Suppose we investigate the link between Corporate social responsibility and corporate financial performance of several firms. We assume that OLS estimates are biased. So, we decide to go for 2SLS as it can control endogenity problem.
Suppose we have panal data (balance dataset from 2000 to 2005).
Suppose we write our OLS as
FP (financial performance) = CSR index + Size + Risk + error (1)
As you explained in your papers, this OLS model still suffer from endogeneity problem due to (1) unobservable omitted variables and (2) reverse causality.
So we use 2sls to address this endogenity issue. We think CSR in above equation is endogenous and we do not have propoer instrument to it. But since we have panel data, we take lag value of CSR as our instrument.
So we write our 2sls ad
csr index = FP + CSR (t-1) + error (2)
FP = CSR index + CSR (t-1) + Size + Risk + error (3)
One of my question is, how we write 3sls equation in this case and how to write stata codes for 2sls and 3sls for this example. Could you please help me?
Re: Web scraping NFL data into Stata
There is not a webscraper for MLB data because there really is no need for one. There are several websites that store data in text format. For example, go to
http://www.seanlahman.com/baseball-archive/statistics/
and download a .zip file of .csv data. You can use import delimited to load the data into Stata.
Re: Export tabulation results to Excel—Update
I believe this to be a file system permissions issue. You might want to email tech-support@stata.com so that we can track down how to fix it.
Re: Export tabulation results to Excel—Update
Can you show me the command you used and maybe a describe of the data?
Re: Export tabulation results to Excel—Update
Thank you so much for your answer. I've contacted the Stata technical support and they kindly help me to solve the problem.
Re: Multiple equation models: Estimation and marginal effects using gsem
That is great! I'm working on the participation and level of participation(demand) on credit, but can gsem fit it? i need help from you my dear
Re: Including covariates in crossed-effects models
What model would be estimated if you specify a continuous variable after "_all:"? For example, could you please let me know what the following command would do?
xtmixed math parented public || _all: public, nocons
Does it allow the coefficient of "public" to have a random component across all observations? i.e., will it estimate the following model:
math_ik = a*parented + b_ik*Public
Thanks for the help.