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

Transforming a continuous variable to a binary variable

Hi! This might be a bit of a basic question but I have a continuous variable x and I want to create a dummy variable y that uses the mean of x as a cut off. So if x> mean of x then y =1. Is it...

View Article


Time series panel with time fixed effects

Hi all, I am running a regression on a panel of 60 countries for 40 years. Time series are log differentiated. I am using the command xtpcse (panel-corrected standard errors). I have two questions:...

View Article


Bootstrap

Dear All, I would like to use the bootsrap estimation but STATA displays the following error: bootstrap _b: xtgls ccp qa1 trans1 iqae taille lev roa age, panels (hetero) corr (ar1) (running xtgls on...

View Article

Unit roots

Hello, I may have a very naive question about panel data. I have data for every quarter of a large number of companies for 9 years. I'm researching the effect whether a change in an interest rate...

View Article

Panel SVAR

Hello I need to estimate a panel structural VAR model. I have downloaded the pvar.ado developed by Inessa Love but it does not seem to be able to estimate the structural version Is there any way to...

View Article


xtdpdqml method

Dear all, I have a dynamic panel data model with GDP/capita as dep. var for 98 regions in the EU. I have run unit root tests for my indep.var. and found that some are not stationary. I prefer to...

View Article

descriptive stats on categorical variables in STATA

I am creating a descriptive stats table and I need guidance on using categorical variables. When I run the descriptive stats for categorical variables, such as "summarize i.educ" (categorical education...

View Article

Replace values with translatons

Hi Statalist. I have ~200 variables that I pulled for translation, and now I'm trying to replace the existing values with their translations. I've been trying something along the lines of this: Code:...

View Article


Double reshape?

Hi Statalist, I'm manipulating a large household level survey. I've successfully reshaped my data from wide to long so that each observation is a HH member rather than a HH. The i variable for the...

View Article


Logistic Regression Pairwise Deletion

Hello Statalist Experts, I was wondering if it is possible to run a logistic regression with pairwise deletion of missing observations instead of case deletion. I am running a logistic regression which...

View Article

Dropping observations if certain conditions met

I have a panel data on which I have a variable called "dif" that takes numerical values (negatives, 0 and positives). I need to keep all the observations of those "id"s that have "atleast one dif==0"....

View Article

Passing parameters to dialog

I'm experimenting with using Stata to write interactive teaching examples, and am struggling with dialog programming. Is there a way to pass parameters to dialogs? For instance, I'd like a dialog to...

View Article

Marginal effects after a user-written ordinal probit

Hi everyone, I am having trouble in estimating marginal effects after a user-written ordinal probit. The ordinal probit runs well but I get "variable __000001 not found" after the code for marginal...

View Article


Two Fixed Effects in ordered logit or ordered probit - how many observations...

Hello, I would like to estimate an ordered logit or ordered probit model with two fixed effects. In principle, the Stata code looks as follows: Code: ologit Y X1 i.D1 i.D2 where D1 are years and D2 are...

View Article

Time fixed effects and firm fixed effects

Hi guys, could anyone be so kind to explain why we use time and firm fixed effects in panel data regression? cheers Edie

View Article


Image may be NSFW.
Clik here to view.

Get a average of observations in the neighborhood??

I have the data of products as the following ID::::::1 2 3 4 5 ... .... 100 Size:::2 3 5 6 7 ... ... 88 Price::9 6 7 8 5 ... ... 6 I want to calculate the average price of observations that are one...

View Article

Changing the color of one word in a graph title

hello everybody, I would like to produce a graph for a presentation where just a single word in the subtitle has a different color, say red, while the other words remain in black. I guess it can be...

View Article


Possible failure to censor

Using Stata version 13.1 on Windows 7 I am still battling with Kaplan Meier survival curves. I am performing the same analysis separately on three groups of data. For two of the groups I get the...

View Article

Rename variable names before import

I have a collection of xls files that I want to append. Each has a set of indicators for a group of countries and years. The layout of each is in wide format with years (numerical) as column headers...

View Article

Same regression model within 12 month moving estimation windows

How can I run a regression within monthly moving estimation windows in STATA? For example: I want to run the same regression model using daily data within the time period "March 2000 to February 2001",...

View Article
Browsing all 65052 articles
Browse latest View live


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