frequencies in multiple columns
Hello everyone, I would like to know all frequencies/repetitions of all inputs/numbers in 20 different columns. for example, column pr1 to pr20 have different number in each cell that can't be repeated...
View ArticleMatrix Calculation
Good morning, I'm calculating with matrices and am building new matrices out of old ones, which shouldn't be an issue. However, the following is not accepted by Stata, returning an r(132) error...
View ArticleIV Country and Time Fixed Effects Regression
Dear all, I have a panel dataset and am trying to run a IV Country and Time Fixed Effects Regression with Stata 12: ivreg2 lnFDIinflow l2.lnGDPpcapita l2.controls i.year i.cntry (l2.lnlaborrights =...
View ArticleDrop observations - Help!
Dear All, I hope you can help me with my problem. I have a data set with many observations (100,000) and it looks like: A B 100 2 100 1 100 3 105 1 105 1 108 3 108 3 108 1 108 2 110 3 I need only the...
View ArticleIVProbit with Tobit first-stage?
Dear Stata users, I would like to estimate an IV probit but because of heavy bunching of observations at 0 for the first stage, I would like this first stage to be estimated via Tobit model. Is there...
View Articlebootstrat only works with noisily / trace
Dear Stata list, I am running a user-written program through -bootstrap-, but strangely enough it only works if I include the noisily or trace options. The setup is something like this: Code: program...
View ArticleLooping over a lagged variable with macro
Dear all, I would like to run a regression testing different lag structures. In order to do so, since I have numerous models I'd like to test, I am trying to use macro but with scarce results. More in...
View ArticleOpreg -
I need to estimate a production function using the olley-pakes semiparametric estimation procedure. I am using the routine -opreg- (developed by Yasar, Raciborski, & Poi, Stata Journal 2008, YSR...
View Articlecumulative return for borrowing spread
In the attached spreadsheet i want to find return for date (say 9 mar 2009 ) to find it i am using for loop but it shows error . please help
View ArticleDate/hour variable: format just to see the hour and gen line graph
Hi all, I have a dataset containing fights in a school. I was asked to do some descriptive analysis, especially graphs, using the date variable to see if perhaps students fight more in a particular day...
View ArticleDynamic panel regression (xtdpd) with only time-series fixed effect without...
Dear All, I am struggling to find out how I can run a dynamic panel regression (xtdpd) with only time-series fixed effect without cross-sectional fixed effect. Currently, I have a code as follow: xtset...
View Articlecalculate growth rate in panel data
Hi, In Stata IC 13.0 I have panel of branch level bank data and US state-level gdp. The data essentially looks like: Bank date statenum gdp A 2002q1 MA 100 B 2002q1 MA 100 C 2002q2 MA 110 D 2002q2 MA...
View ArticleSystem GMM Estimation
Dear Members, could you please help me with System GMM estimation. I am using stata 13.1.and am studying the impact of finacial development on economic Performance(growth rate GDP per capita) for Panel...
View Articlemargins to calculate cost elasticity using translog
Dear Statalist I am using margins in Stata 12.0 to calculate cost elasticity in translog function as shown below: xtreg lcost c.lq#c.ld c.ld#c.lw1 c.lw1#c.lw2 c.lw2#c.lw3 c.lq#c.lq c.ld#c.ld...
View ArticleHausman test for multinominal logit - complex survey using wald test
Hi everyone, I used suest (Wald test) to test IIA for multinomial logit but find it confusing on the interpretation of its output. Here is the command that I wrote: svyset [pw=weight], psu(v001)...
View ArticleHow to use lag option in dfuller test
Hi all, I tried to use dfuller command. However, I do not thoroughly understand when I should use lag option. Personally, I think should use lag option as lag of differcence that we created from...
View ArticleForecasting, iterated vs direct?
I've constructed a supply demand model which should allow me to directly forecast 22 weeks ahead, and I'd like to compare that forecast with an ARMA model (which would have to be iterated). I could...
View ArticleAdjusting weights for asset index
Hi Statalist, I have baseline and endline datasets that I'm using to compare changes in asset indices. For the baseline, I'm conducting principle component analysis on the common set of assets across...
View ArticleFast calculation of marginal effects after Logit and MLogit
Hello, I am using Stata 11 and I want to calculate marginal effects after Logit and MLogit in Stata (at the mean for continuous explanatory variables and at 0 (for a unit change) for binary explanatory...
View Article