Working with Multi-panel Time Series Data: Appropriate Methods to Deal with...
Hello Stata friends! I am seeking some insight from those experienced with working on time series data. It is my first time really using complex time series data for a 10 year multi-country panel. and...
View ArticleCreating histograms
I created a dummy variable to accuse a characteristic which is common in 4 groups in my analyses. How can I draw an histogram, one for each group, which accuses the percentage of that characteristic in...
View ArticleLooping over datasets and creating year for each dta.
Hi everyone! I'm trying to create a year variable for each .dta file that I have. Thankfully, the .dta files themselves indicate the year, but I'm failing to develop a foreach command which takes...
View ArticleWhy the underscore in svy mean estimation
When I do this: eststo est1: svy linearized , subpop(eoy_cat1): mean ap_improve (running mean on estimation sample) Survey: Mean estimation Number of strata = 1 Number of obs = 2811 Number of PSUs =...
View ArticleUsing the wealth index and wealth quintile variables in DHS dataset
Hallo great friends, May be many of you here have great knowledge of the Demographic and health survey data. I want to use the wealth index variable to determine the what influences poverty in Kenya....
View ArticleEpidemiology - Pooling relative risks or hazard ratios for different outcomes...
I apologise if this has already been asked and answered. I have one cohort trial with separate multivariate RRs for disease A and disease B. I would like to merge these RRs to get a single RR for...
View Article'3-D' Merge: Suggestions welcome.
Hi everyone: I have several years' worth of questionnaire data that I would like to combine--my employer issues this questionnaire to between 30 and 50 entities each year. The ultimate goal is merge...
View ArticleBar Chart Question
Hi, I am new to this forum and to stata so I apologize if this question is too simple and poorly written - I currently have a categorical variable called "var" that equals either 1, 2 or 3. I have...
View Articlepanels are not nested within clusters
Dear all, Hi, I want to run a fixed effects regression over (unbalanced) panel data, where 1) fixed effects for every individual i; 2) standard errors clustered by industry and month. I tried running,...
View ArticleData conversion from weekly to daily (Date mismatch)
Hi. I am using Stata 13 and have a question about the “collapse” command and Stata date formatting. I have a daily time series from January 1971 up to nowadays. Data is from Monday to Friday (weekends...
View ArticleCoarsened Exact Matching returning error message
Hi, I am trying to run Coarsened Exact Matching using user written command "cem" (http://www.stata-journal.com/sjpdf.h...iclenum=st0176). However, I am constantly getting error message (even though it...
View Articlelclogit/lclogitml: change of reference latent class
Dear all, I am using the lclogit/lclogitml command in Stata/SE 13.1 with 3 or more latent classes. I am especially interested in the t-statistics of the class membership model - Is there a way to...
View ArticleCreate a unique ID for multiple diagnosis
Hi I have a very large data set, which involves unique IDs for participants, but each ID is repeated every time the participants are diagnosed with a condition. Looks a bit like this: ParticipantID...
View ArticleDummy Variable
I have estimated a panel regression model with 3 dummy variables and all the dummy variables were omitted because of collinearity. is there a way to determine which dummy variable is causing the...
View ArticleStandard deviation of annual returns
Hi there I have annual returns of firms from period 2003 until 2013 and I want to calculate the standard deviation of return for each firm over the last 3 years, including the current year. Following...
View ArticleCounting number of events within a specific time range.
Hi StataList, I have another question I was hoping you friendly folks can help me with. I have a dataset that includes variable id, day, and time. Each id represents an individual event that occurred...
View ArticleTrying to match subjects based on two variables
Hi. I am using Stata 13.1 and relatively new to Stata. I have a dataset which will be used to find three matched controls for each case. This is not a matched case-control design, but in order to...
View ArticleTesting Spurious Regression
Hi, I'm trying to model a set of panel data. And my dependent variable is a price level variable which is non-stationary. I was wondering how can I test spurious regression using stata?I've looked at...
View ArticleHELP! nonlinear least squares method
Hi, I would like to specify for one of my model equations as a non-linear squares method of the form λ (1 + Σ X β ), where λ are time dummies and X are labour variables (e.g. labour market...
View ArticleStore P Value from prtest
Hello, I have what I hope is a relatively easy question to answer. I'm using prtest to compare portional differences between two groups. It's part of a script, and I need to calculate a Cohen's H...
View Article