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

Coding several variables at one time

I have a dataset with following format- Code: * Example generated by -dataex-. To install: ssc install dataex clear input long ID byte(CSEDPD CSEDPN CSEDNA CSEDPL CSEDML CSEDDS CSEDAD CSRVLR CSRVRR...

View Article


Difference in differences analysis with fixed effects

Hi everybody, I'm currently trying to conduct a special diff-in-diff analysis with stata. My research is about sovereign credit ratings and their impact on cross-border M&A volumes. One of the...

View Article


How to interpret the DID result (beginner)

Hello! I have run the DID analysis however I don't understand how to read the result of this. So, I would like to find out about the effect of mount eruption to the tourism in city 5 as the treatment...

View Article

coefplot

Hello, I would like to do a grafic where in the axis of the Y corresponds to the dependent variables of 22 models and in the axis of the X corresponds the confidence interval ONLY of the variable...

View Article

[nl] fit a regression with interval inequality constraints

Hello everyone I am trying to fit a linear regression with an inequality as in http://www.stata.com/support/faqs/st...l-constraints/ However, I want to impose that a < 0. Mathematically it would...

View Article


Fine and Gray stratified

Is it possible to perform a fine and gray subhazard model stratified for one or more variable?... for example: stcrreg x1 x2 x3, compete(status==1) strata(........)

View Article

3 categories not present in output despite creating dummies

I have the following dataset: Code: * Example generated by -dataex-. To install: ssc install dataex clear input long MCRNUM double(READM_30_AMI pos_overall) float(fin_ehr_scr ownership bedcode...

View Article

Gravity model using Paneldata from CEPii

Hi, This is my first time using STATA and I have a hard time getting the hang of if. I want to preform a gravity model using panel data from CEPII website. My data is generated like this: Array What I...

View Article


Question about global/local macro

Hi guys, I am trying to use a loop to assign value from variable (b0 to b30) to a new variable fcast_value, lag_date is a variable too. foreach i = 2(1)_N { global lag_temp = lag_date[`i'] replace...

View Article


reshaping data

Hi, I have the following daily dateset over different locations and departments and two questions (Below is a small sample): Code: input str10 date int location int department int question str10 answer...

View Article

MarkDoc (GitHub) bug on Windows: Cannot output tables in Stata Journal style

The user-written program markdoc (GitHub) version 3.9.5 on Windows cannot output tables in Stata Journal style, which is a bug for the option style("stata"). I am using Stata 14.2 on Windows 7 and...

View Article

Are there any hidden consequences of using/not using variable prefixes?

Hello, I couldn't find this topic elsewhere, so I thought that this may be a good place to ask. When I was learning to use Stata, I was under the impression that Stata had a time-saving feature -...

View Article

Data Formatting (reshape?)

Hello, All. I have been trying to format my data in a particular way but has not been able to do so. You help will be highly appreciated. So the problem basically is that I have a data that looks...

View Article


Appropriate way of calculating growth rates in a interval panel regression

Dear statisticians, I have the following problem. First of all i wasn't able to find anything related via the search function so i opened this topic. It is probably obvious for most of the people here...

View Article

How to choose instruments in GMM-dif

Hi, I'm new on this forum and I'm looking for your help. I'm trying to carry out an analysis on a dynamic panel. My model is an ECM in which pecking-order and trade-off theory are nested. The dependent...

View Article


adjusting for seasonality in itsa model

Dear Statalisters, I have been using the itsa procedure for analysis of change in monthly health service use indicators, and would like to conduct a sensitivity analysis incorporating adjustment for...

View Article

Spike plot error when adjusting X-axis values (Continuous Variable)

H

View Article


Propensity Score Weights - Differ by Period

Dear all, Apologies if my query format is incorrect as this is my first post. I am currently conducting a difference-in-difference analysis on panel data (2 pre and 2 post treatment periods). The goal...

View Article

Understanding macro syntax

I use a macro to define the URL for a dataset downloaded from Harvard Dataverse using copy: Code: local unvotingdata "https://dataverse.harvard.edu/api/access/datafile/2839238?format=original" copy...

View Article

How to Limit the Number of Years Extrapolated?

Dear Listserv Readers— I’m extrapolating using a cross-national time-series dataset, and want to limit the number of years I extrapolate out on a country-by-country basis (so that the extrapolated data...

View Article
Browsing all 65029 articles
Browse latest View live


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