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

table + putexcel

I use the table command and I wish to transfer the table to excel, I can do it through the results windows, "copy as table" - but I wish to somewhat automate this process - I thought using putexcel,...

View Article


Correlation and cluster command

Hi Everyone! I am using Stata SE 14.0. I would like to run a correlation between variables (e.g. alcoholuse and depression), but I have a twin sample, which means that my observations are...

View Article


Connection between investor returns and sector returns

Hallo Statalists, I am using Stata12 and would like to find out based on investor returns and sector returns, which sectors are prefered by investors (men vs. women). I have panel data and have done...

View Article

Editing Posts

I wonder - why does the option to edit a post disappear after some time? is that intentional?

View Article

Graphs with Coarsened exact matching (CEM)

Hi, I want to do a graph to check for parallel pre-treatment trends. I have done it on the unmatched sample using: separate yvariable, by(treated) bysort Year: egen Untreated = mean(yvariable0) bysort...

View Article


graphing interaction between categorical variable after stpm2

Dear Statalister I run a non PH regression using stpm2 command : Code: xi: stpm2 i.rand i.country i.agegroup i.school i.marital i.job i.parity i.deliv i.bfinitime, /// df(4)scale(hazard)tvc(rand...

View Article

Interpretation of IV results using dummy variables as the Instrument

I am currently running IV regressions where the instrument is dummies for regions of the world. I have completed a 2sls regression and have the coefficient of the variable which I was originally...

View Article

Variable and value labels with reshape

Hello, I have some data: Code: * Example generated by -dataex-. To install: ssc install dataex clear input double(hhid mem dc01) long(dc02 dc03) 2 51 2001 2 9 3 5 1990 2 7 3 12 1997 2 9 4 9 2001 3 9 4...

View Article


Updated version of -itsa- available on SSC

Thanks to Kit Baum, a revised version of itsa is now available on SSC. This new version sets the time variable (_t) to start at 0, not 1, in order for the model estimate of the constant to represent...

View Article


Problem with syntax

Dear all I am having a strange problem with syntax. More specifically, Stata seems to get confused with the comma separating the options of a program, arbitrarily adding it in the last variable name of...

View Article

Problem Interpreting IV Results

I would appreciate any help on this issue. Thank you so much. I am running an IV regression using the command below. I instrument using dummies for France, UK, Germany and Scandanavia legal origin. I...

View Article

Creating a Retrospective Panel

Hello I have some schooling data from which I am trying to create a retrospective panel of schooling history. The schooling data has information on 1. Current age 2. Age at entry in school 3. Age at...

View Article

Package for homogenizing value labels

I have a 10 or so data sets that I am trying to combine. They contain the same information (in principle), but the variable names and their value labels differ. I can manually make the variable labels...

View Article


panel AR(1) regression: dummy variable omitted because of collinearity

Dear all, I'm dealing with a panel data with three id variables, one time variable. At first, I tried the AR(1) model like this: Y(i,j,k;t) = a*Y(i,j,k;t-1) + e(i,j,k;t) Then, I added dummy variable...

View Article

Creating expressions/variables with post-estimation matrix e(b) elements, or...

Dear Readers, I am trying to generate a new variables computed using a linear combination of the coefficients from a linear regression and previously existing variables. I have 3 questions. 1. Is this...

View Article


Raykov composite reliability in stata?

Hi, I estimated the cronbach alpha as a measure of reliability for a scale using the following commands: alpha x1 x2 x3 x4 x5 x6 x7 x8 x9 x10, std item However, a reviewer asked to report the raykov...

View Article

Collapse and missing values: Generate dates that do not appear and assign...

I have a dataset containing fights incidents from Nov 2015 to Feb 2016 for different facilities. I need to create collapsed data-set with the total number of fights for each month by facility. So each...

View Article


Random Effects & Pooled OLS results the same in panel data analysis

Hi, This is my first post here and I'm relatively new to stata. I'm doing some panel data analysis and my fixed effect, random effects and pooled ols results are all relatively similar (although RE...

View Article

Image may be NSFW.
Clik here to view.

Maximum likelihood estimation

Dear all, Dear all, I am currently trying to estimate the parameters of a limited dependent variable model, as introduced by Lesmond et al. (1999). y=b*x-c1 if y<0 y=b*x-c2 if y>0 This is the log...

View Article

Massive Survival Model takes Forever!

We routinely process a file with 4.5g of data. We are adding 80m of data every month. The processing time appears to increase exponentially. We believe an egen command is the issue. Is there another...

View Article
Browsing all 72756 articles
Browse latest View live


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