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

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 Article


Creating 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 Article


Looping 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 Article

Why 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 Article

Using 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 Article


Epidemiology - 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 Article

Bar 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 Article


panels 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 Article


Data 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 Article

Coarsened 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 Article

lclogit/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 Article

Create 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 Article


Dummy 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 Article

Standard 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 Article


Counting 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 Article

Trying 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 Article


Testing 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 Article

HELP! 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 Article

Store 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
Browsing all 72769 articles
Browse latest View live


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