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

Problems with superimposing points on to stata base maps using spmap

Does anyone know why there might be issues overlaying cluster cluster coordinates on to a base map using spmap? When I use the following code all the points clump together and the polygons disappear:...

View Article


Multiple conditions for the same value

Hi, I'm trying to generate a variable if the same condition is met for multiple variables. I want to do this in an efficient way. Ex.: This is what I don't want to do: I don't want to repeat the value...

View Article


Replicating log likelihood for Survival Analysis

I am trying to replicate the log likelihood calculation that is output from an exponential parametric proportional hazard survival model. I manually built a dataset, stset the data, ran an streg with...

View Article

Lagged variables in a time series

Hi I am trying to run a time series with several lagged variables to see how effects change over time. When I do this it omits them to to multicolinearity. This of course makes sense but how can it...

View Article

Possible to retrive data from other datasets?

Code: Is it possible to see what datasets others has? I am doing research concerning water consumption. The available information is: The regression output (number of variables, p values,...

View Article


correct command for difference-in-difference

Hi all, I am running a difference in difference (DID) regression on two different outcomes: (i) probability of doing a specialist visit and (ii) number of specialist visits in the last month. Outcome...

View Article

Stata to Latex

Hi all, I'm trying to put tables of summary statistics - as a starter - into Latex, for the first time. I've tried using Code: eststo: quietly sum var1 var2 var3 Code: esttab using...

View Article

SSC install

Dear Stata Users, I am having problems with installing programs from SSC archive. I have the following error: checking egenmore consistency and verifying not already installed......

View Article


Logistic Regression with Panel data

Dear all, I'm a student from Germany so first sorry for my bad english. I hope you understand my problem anyhow. Second I'm using Stata for the first time, so I have just little experience with it. I'm...

View Article


recording row number of last nonmissing observation before current row

Dear all, Hi, I have a dataset with observation number, i.e., _n and data d, which might be missing. For each row, I am interested in recording the row number of last nonmissing observation before that...

View Article

instrumental variables logit for panel data

Dear All, my basic logit model for panel data is: xtlogit in_work i.numkids i.qfachi i.wave age agesq i.spjb i.grp howlng howlng_part if sex==2 & cpstat==3, or where the continuous variable howlng...

View Article

Estimating bank efficiency using Almost Ideal Demand System

Hi, I´m a brazilian student. The purpose of my research is using AIDS model to estimate economies of scale in brazilian banks. In doing so it´s necessary to adapt AIDS model including other regressors,...

View Article

Stitching DHS datasets together by label rather than value

I'm trying to use DHS data for research, and I've run into a bit of a sticking point - the "religion" variable (v130) has different labels for many of the values - for example, for country A, v130==1...

View Article


Stitching DHS datasets together by label rather than value

I'm trying to use DHS data for research, and I've run into a bit of a sticking point - the "religion" variable (v130) has different labels for many of the values - for example, for country A, v130==1...

View Article

Asymmetric Multivariate GARCH?

Hello, Is it possible to estimate an MGARCH model with asymmetric volatility in Stata? John.

View Article


country dummy (how to display dummy for all countries)

Hello, i am working with panel data and have 12 countries. am trying to run the following ols regression regress y X1 X2 i.country However my result (focusing on i.country) display 11/12 countries. I...

View Article

Fama Macbeth regressoin

Hello, I have run the following Fama-Macbeth regression with this code: sort dummy .capture noisily by dummy: xtfmb retx asset_growth_ll Tobin_Q_l_w_l cashflow_at_ll marketcap_ln_ll be_me_ln_ll...

View Article


Using dummy variables/interactions in a regression and possible problem of...

I have three type of dummy variables (hours, weekdays, months). Using those dummy variables as interactions in a form Code: months#weekdays#hours creates around 2000 variables (although p-values for...

View Article

Datasets and functions

Code: Lets say that I wanted to find out how a function in stata works. What would be the best way to find an example dataset where this function is used? Assuming that I do not know the name of a the...

View Article

OLS on discrete dependent variable

I want to analyze the factors behind the educational attainment of a person. I have a survey dataset. My pendent variable is Years of Education (Preschool, 1 , 2........,18) while independent variables...

View Article
Browsing all 65514 articles
Browse latest View live


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