Is there any short way to create indexs with a time serie data in Stata?
I have 35 years of precipitation data and 1000 Geographic Coordinates. The daily precipitation is v1 and the geographic coordinates that i have got are in 1000 columns (v2 v3 v4... v1000). I would like...
View ArticleSorting with xtile
Dear Stata users My data is in panel format, sorted by date. For each day stocks are assigned a portfolio. For example on 03/15/2004 there only 3 stocks in the portfolio with respective ids of...
View Articlesubinstr function
I have the following dataset Code: CID9 CID10 E891.9 X00.6 E891.9 X00.7 E891.9 X00.8 E891.9 X00.9 E892 X01.0 E892 X01.1 E892 X01.2 E892 X01.3 E892 X01.4 E892 X01.5 E892 X01.6 E892 X01.7 E892 X01.8 E892...
View ArticleArrow chart using two sets of coordinates
Hello, I wonder if we can produce line charts out of two sets of x and y coordinates. I have four variables, namely x1, y1, x2, y2. I would like to have lines starting from (x1,y1) to (x2,y2). I would...
View ArticleAn odd result from a series tests comparing different marginal effects..
Hi all. I am trying to estimate marginal effects of a continuous variable (x1) after running an xtlogit model with three-way interactions among (x1, x2 and x3). x2 is binary and x3 runs from 1 to 8 and...
View ArticleHow to impute missing values for a variable that is subsequently used to...
I am struggling to see how to obtain a pooled estimate for a variable after multiple imputation that can be worked with in further data manipulation for the original dataset. I am using a large child...
View ArticleLooping over dates
Hi everyone! I've got several dates for which I need several dta. files. Dates: 01jul2005 28dec2005 26jun2006 23dec2006 21jun2007 18dec2007 15jun2008 12dec2008 10jun2009 07dec2009 05jun2010 02dec2010...
View Article_5ytor: factor variables may not contain noninteger values
Dear all, I have a variable `_5ytor' which has the values 0, 0.2, 0.4, ..., and 1.6. Code: . tabstat dollar, by(_5ytor) Summary for variables: dollar by categories of: _5ytor _5ytor | mean...
View ArticleDiff-in-Diff with several time-periods
Hello everyone. I am analyzing a data set consisting of mean incidence rates for a certain disease on a county-level in a country. I have data for 15 years and about 300 counties (4500 observations in...
View ArticleTabulations and Tables
Simple question: tab x y,row nolabel tab x z, row nolabel What would be the command for a table that combines the above two tab commands? So it includes x y z in row without the label I tried table x y...
View Articleivreg standard error estimation
Dear all, I am wondering which method is used in the ivreg command to estimate the standard errors of the second stage... Are they estimated by a bootstrap method ? I need to know this in order to...
View ArticleBootstrap
Dear All, I would like to use the bootsrap estimation in order to avoid the problem of small sample size (N) but STATA displays the following error: bootstrap _b: xtgls ccp qa1 trans1 iqae taille lev...
View ArticleInterpreting Lincom in a Logistic Regression
I am having a hard time interpreting a logistic regression after I used lincom to show 10% and 90% increases in my independent variables; the outcome is cluster vs non-cluster county. The code I used...
View Articletest
Hello everyone. I am working with the command MMSEL in Stata 13.0 found here: http://fmwww.bc.edu/repec/bocode/m/mmsel.html. The command was developed as per the Machada and Moto (2005) methodology to...
View ArticleInterpreting results of MMSEL
Hello everyone. I am working with the command MMSEL in Stata 13.0 found here: http://fmwww.bc.edu/repec/bocode/m/mmsel.html. The command was developed as per the Machada and Moto (2005) methodology to...
View ArticleUnrecognized command: ustrregexra
Hello, I am trying to clean up my data, amongst others by deleting some common terms, as follows: I've tried this: Code: replace win_name2 = ustrregexra(win_name2, "( NV)|( SA)|( BVBA)|( SPRL)|(...
View ArticleCalculating Odds Ratio from Relative Risk
Hello I have a set of Relative risks (RR) and Confident intervals and I want to convert them into Odds ratio and Confidence interval, I wonder how is it possible to calculate ORs from RRs? I would be...
View ArticleOpening STER created in stata 14 with stata 12
The Stata at my work station was updated recently from 11 to 14. my home station has stata 12.1 . I use STER files quite often, running models at work, saving them to file and then at home outputting...
View ArticleMissing data replacement
Hello, I would like to know if it is possible to replace missing data of multiple variables for the value of a preexistent data of one variable. Here it is an example to illustrate what I want to do....
View Article