Unrecognized 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 ArticleTransforming a continuous variable to a binary variable
Hi! This might be a bit of a basic question but I have a continuous variable x and I want to create a dummy variable y that uses the mean of x as a cut off. So if x> mean of x then y =1. Is it...
View ArticleTime series panel with time fixed effects
Hi all, I am running a regression on a panel of 60 countries for 40 years. Time series are log differentiated. I am using the command xtpcse (panel-corrected standard errors). I have two questions:...
View ArticleBootstrap
Dear All, I would like to use the bootsrap estimation but STATA displays the following error: bootstrap _b: xtgls ccp qa1 trans1 iqae taille lev roa age, panels (hetero) corr (ar1) (running xtgls on...
View ArticleUnit roots
Hello, I may have a very naive question about panel data. I have data for every quarter of a large number of companies for 9 years. I'm researching the effect whether a change in an interest rate...
View ArticlePanel SVAR
Hello I need to estimate a panel structural VAR model. I have downloaded the pvar.ado developed by Inessa Love but it does not seem to be able to estimate the structural version Is there any way to...
View Articlextdpdqml method
Dear all, I have a dynamic panel data model with GDP/capita as dep. var for 98 regions in the EU. I have run unit root tests for my indep.var. and found that some are not stationary. I prefer to...
View ArticleProblem on test of statistical difference of two categorical variables with...
Dear all, I have 2 variables, both are categorical variables with more than 2 groups. And I would like to use test for determining if there are statistical significant differences between groups of the...
View ArticleInfer on stata
Hi there! I have a population size in a country only in 2005 And I have net migration for all year around that date Hence I would like to generate those missing data with the accumulation of the net...
View ArticlePanel unit root tests based on cross-sectional dependence
Hi, I was wondering how we can run the command for the Pesaran's panel unit root test based on cross-sectional dependence.I downloaded the command "xtcips" from google but unfortunately,it doesn't run...
View ArticleCan I Autogenate savefile names using another another filename as a...
Hi I'm new to Stata. I have been looking in the manual and the forums to see if I could find an answer my question, but unfortunately without luck. I hope you can help me. I am currently importing...
View ArticlePossible failure to censor
Using Stata version 13.1 on Windows 7 I am still battling with Kaplan Meier survival curves. I am performing the same analysis separately on three groups of data. For two of the groups I get the...
View ArticleRename variable names before import
I have a collection of xls files that I want to append. Each has a set of indicators for a group of countries and years. The layout of each is in wide format with years (numerical) as column headers...
View ArticleSame regression model within 12 month moving estimation windows
How can I run a regression within monthly moving estimation windows in STATA? For example: I want to run the same regression model using daily data within the time period "March 2000 to February 2001",...
View ArticleError issued when using "margins" after xtoprobit
Dear All. The relevant codes are as follows: xtset pnrt aar xtoprobit depvar varlist, nolog margins, dydx(*) Regularly after probit/logit functions you can use the postestimation command "Margins" to...
View ArticleNo observations error
Hi, in have read through various forums regarding the no observations r2000 error but cannt seem to solve my problem. I have a dataset ranging from 2001-13 with yearly data, and 4 variables. When I run...
View Articleyear-on-year tariff change in specific industry
Hi, For my research I have to make a dummy variable to see if the import tariff in a specific industry falls by more than 2 times the median year-on-year tariff change in that industry. But I have some...
View Article