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

Calculating a mean within a time period

Dear Statalist members, I have a data sample in which I want to calculate the mean (among other things) within a time window of 1.5 years before and 1.5 years after the announcement date. The...

View Article


Combining specific observations

Hello everyone, I have a panel dataset containing trade data for 85 countries, across 16 years with around 12-15 variables (continuous and indicator). I wanted to combine observations for 10 specific...

View Article


Difference in differences for binary outcome

Dear all, I´m working with pooled cross-section data based on a survey. I aim to examine the effect of a policy on the employment rate of a targeted group. So I run the following probit regression...

View Article

Overall p-value in independent categorical variable in the imputation model

Dear all, I've been trying for several weeks no to find a way of getting an overall p-value on a categorical variable in a multiple imputation model. In the "normal model" the testparm command just...

View Article

Placebo Tests for Synthetic Control Method.

Hello everyone, I am running the synthetic control method on Stata 13 using the codes provided by the authors (website: http://web.stanford.edu/~jhain/synthpage.html) and the help synth command in...

View Article


Inter-rater ICC problems

Hello ! For a reliability study, 10 patients are evaluated by 4 raters one week apart so that I can calculate one intra-rater ICC; but as there is 2 visits, in order to calculate one inter rater ICC,...

View Article

Testing for autocorrelation in a two-way linear panel data model

Dear all, I am conducting a study on a long panel using a two-way fixed effect model, that is including both country and time fixed effects. After estimation, I get that time fixed effects are highly...

View Article

Linear time trend

Dear all, I have data on the 2nd quarter from 1999 to 2008.I want to create a linear time trend, I tried with gen Trend=_n but I´m not sure if it is right. Thanks!

View Article


Filling-in variable's missing values with the average of few variable's...

HI I have the dataset counting 161 observations. The dataset looks as following: ID_2 NAME_2 innovation 31462 Region 1 .3636364 31463 Region 2 .25 31464 Region 3 .4 31465 Region 4 .1428571 31466 Region...

View Article


interquartile range for two-way fixed effect model

Dear all, I was wondering whether it makes any sense to report the inter-quartile range for the model that exploits within-variation (in two-way fixed effect model). Does it provide any additional...

View Article

Importing C code in Stata and Nonlinear optimization

Dear Statalist, I am trying to import some C code from the NLopt library (http://ab-initio.mit.edu/wiki/index.php/NLopt) into Stata. I followed this tutorial (http://www.stata.com/plugins/) to create...

View Article

Passing saved matrix name to mata from stata

Dear fellow Mata enthusiasts -- I have the following seemingly simple problem for which I can find no workaround. The problem involves passing a local to Mata from Stata, where the local contains the...

View Article

problems with mlmatbysum in a method d2 ml estimator for panel data

dear stata list readers, especially dear experts on ml estimation in stata. I am estimating a random effects model with one nonlinear parameter wherefore I need to program my own estimator. Fortunately...

View Article


Wait, Stata!

I am producing some data with matlab, once it is finished I want stata to start and pick up the result and calculate further. I am aware of the "sleep" command. Hence, I could guess how long matlab...

View Article

Factor analysis on a panel dataset -- problem with i.i.d. ?

My colleagues and I are in the process of reviewing the methodology of our Index and as part of that we are exploring using principle component analysis to weight the variables that we have in the...

View Article


Alternative to signrank when distribtion is not symmetric

I have data from the lab where participants chose a probability from 0% to 100%. The theoretical optimum is at 0%, obviously you cannot have a symmetric distribution around 0%. I want to prove that...

View Article

How does -project- handle breaks?

I am using Stata 13.1 on Unix. I am also using the user written command project, version 1.3.1 22dec2013 My project takes a long time to run, so I like to use Unix's mail capabilities to send me an...

View Article


How to count the number of business segments in Stata? How to write the code?...

Hi: My data comes from WRDS and my research question is about gender diversity and firm performance. My data is 7 years panel data(from 2007 to 2013) and I use fixed effect to run the regression. I use...

View Article

Times series regressors in panel data regressions

I have a very general econometrics concern: Why when it comes to investigating the effect of (multiple) time series variables on average market figures (like returns, turnovers,...), it is common to...

View Article

Stata slow in a distributed environment

Hello – I am not a Stata user, but am trying to help someone who is. We recently migrated to a virtual environment (VM) where Stata (Windows v 12) runs on a remote (and geographically distant) network...

View Article
Browsing all 72756 articles
Browse latest View live


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