Quantcast
Channel: Statalist
Browsing all 72767 articles
Browse latest View live

Conditional Mean of assets after xtpoisson

Hi there, I want to create a graph which looks like the following: Array I have used a Poisson regression to analyse the effect of taxes rates on fixed assets: xtpoisson $ylist $xlist,fe robust nolog...

View Article


How do I write the regression outcomes in a row

I apologize if this is an elementary question but I hope someone can solve my problem. I want to make a table expressing two sets of regressions, each in a separate row; each regression has one...

View Article


How to Generate Household Head Variable

Dear Statalist Users, I work with a household survey and I would like to generate a variable for household head. I have three different definitions: Definition 1: if one member of the couple is a Full...

View Article

Image may be NSFW.
Clik here to view.

Calculation of Cash flow volatility with a rolling window using loops

Hi guys! I want to calculate the cash flow volatility for every firm (gvkey) and every year (year) in my dataset, using the standard deviation of cash flows for the previous 5 years. To do this, I...

View Article

Continuous interaction variables and margins

Hi all, I've got an analysis set-up that includes several interaction variables, all of which are continuous but some of which are bounded (i.e. one variable is between 0 and 1). I've been searching...

View Article


2016 German Stata Users Group meeting

Date June 10, 2016 Venue GESIS Cologne/University of Cologne Cost TBA Submission Deadline March 1, 2016 Call for Presentations We would like to announce the 14th German Stata Users Group meeting to be...

View Article

Double Clustering

Hi, I want to check the robustness of my results to double clustering, but I am having some issues. I have Stata13MP and I tried different things: 1) ivreg2 when I use two variables in the cluster...

View Article

-xtoverid- after robust Standard Errors

I have to choose between Fixed and Random effects to estimate a panel data model (T=5 N=182). I read that Hausman test doesn't work well in presence of heteroskedasticity and/or autocorrelation in the...

View Article


Formating tabulate command output: From scientific notation to fixed digits

Hi all After I am running the tabulate command, I get this: indus | Freq. Percent Cum. ------------+----------------------------------- 1.01e+07 | 34 0.03 0.03 1.01e+07 | 561 0.58 0.61 1.01e+07 | 34...

View Article


Stata 14.1 crashes after closing down Stata project manager (*.stpr files)

Hi Stata experts, Does anyone know why this happens. Everytime I close down my Stata project manager (*.stpr files), my Stata crashes. I recently upgraded my Stata to 14.1 in my Mac machine. But it...

View Article

loop that requests the internet

Dear all, I have a datafile (dta) with 4 variables, namely two lattitude/longitude pairs: lat1, lon1, lat2 and lon2 . When I send the two pairs to Google Maps, they calculate the distance between the...

View Article

Kruskal Wallis kwallis

Hi there, I got Stata 11 and used to be able to download the kwallis2.ado file (post-hoc kruskal wallis test). Because of new computer settings I had to re-install Stata and when trying to...

View Article

learning regular expressions

for those, like me, who have some problems using, and even learning, regular expressions, you may find the following site of interest http://hackaday.com/2016/01/31/cross...r-expressions/ a crossword...

View Article


How to Choose the Best Model in GLM

Hi, I am estimating two models in GLM: (i) family(poisson) link(log) and (ii) family(gaussian) link(log). Can I use IC measures like AIC and SIC to select between them? Are there any other diagnostics...

View Article

Position in dataset

Hi, I have a dataset that looks as follows: var1 var2 var3 var4 1 2 3 2 4 5 6 4 7 8 9 9 Var4 takes values that correspond to one of the observations in var1-var3. I would like to create a new variable...

View Article


error r(603) when trying to save a local macro

I´m using stata 13 on a windows 8 plataform. I have 87 variables and 219,688 observations. I´m trying to use local command and save it later, but stata keeps saying that the file could not be oppened....

View Article

London Stata Users Group Meeting: Thursday 8 and Friday 9 September 2016

The 22nd London Stata Users Group Meeting takes place on Thursday, 8 and Friday, 9 September 2016 at Cass Business School, London. This post is based on http://www.timberlake.co.uk/2016-sugm (which...

View Article


How to get a midline decimal period

Stata has 2 decimal separators, period and comma (dpset command). How do I get a midline period (alt0183 · ) as decimal separator? It is required by some journals, like The Lancet.

View Article

Outreg2 for One way Tabulations

I have a variable called icd9 that is an encoded list of about 99 possible labels that can describe an observation in my data. I am using the following code to export a tab of icd9 to excel: outreg2...

View Article

Random Effects/Fixed effects/OLS when heteroskedasticity and autocorrelation

Hi, I found this online regarding how to choose between the fixed and random effects. webuse nlswork.dta xtset idcode year // Fixed effects regression xtreg ln_wage age hours , fe est store fe //...

View Article
Browsing all 72767 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>