Cross Price Elasticity
Dear all, I'm trying to estimate cross price elasticities of a non linear logtransformed model. Do any of you know how to estimate the cross price elasiticy in stata? In addition to the prices and...
View ArticleMultilevel mixed-effects complementary log-log regression (mecloglog) in...
Dear members, I am running a discrete-time survival analysis on an unbalanced panel data by using a random-effects and population-averaged cloglog model (xtcloglog command in Stata). xtcloglog dv iv cv...
View ArticlePesaran PESCADF and CIPS optimal lags panel unit root
Hi, I am running second generation panel unit root test, CIPS with "multipurt" and PESCADF with "pescadf", but I would like to know if there is a way to know the optimal lag selection, and if I need to...
View ArticleGenerating variable for how many other female adults are in household
-Hi Everyone, Greetings. I was wondering if someone could help me with the following. My data set is below. I will like to generate a new variable that reports the number of females between the ages of...
View ArticleGranger Causality with multiple VAR model
Hi all, I have a dataset containing interest rates set by 6 different banks. To see if the interest rate set by one banks granger causes the interest rates of the other banks I want to run a granger...
View ArticleNon linear relationship
Hi there! I am testing human capital on development. If I see that the development process is heterogenous across countries, does this mean I will have a problem of non-linearity? Or are these 2...
View ArticleFilling in missing data with egen
Hi, I calculated means (Y) for originator B. However, I would like to create a variable Z that fills in this mean (from originator B) for A and C as well within each month. My data looks as like this:...
View ArticleComputing portfolio returns
Hello all, I'm quite new to Stata and have been struggling with this issue for quite some time now. I've tried to search for similar problems but haven't been able to find some, so hopefully someone...
View Articleclustering
Hello Stata users, My key regressor is at the city level (GDP growth per capita) and my outcome at the individual level. I cluster my standard errors to the city level. Is it better to take into...
View ArticleWeighting in 2014 ACS Data
I am trying to calculate the number of people whose income is at or below the federal poverty rate in the 2014 ACS sample. This is a person-level variable - how do I tabulate this information and...
View ArticleIdentifying observations that include a certain number
Hello, I'm trying to figure out the code to pull out a subset from a numeric variable. The numeric variable is a date (e.g., 1/1/2010) and I would like to generate a new variable that identifies all...
View ArticleMediation analysis on multiple imputed data sets: How to get standard errors...
Hi everyone. I want to conduct mediation analysis (using "medeff") with continuous treatment, mediator and outcome variables on 10 imputed data sets but "medeff" is not supported by the command "mi:...
View ArticleAUROC for Linear Probability Model
Hello there, I am estimating a linear probability model of a rare outcome (97%=0, 3%=1) because I was asked to include fixed effects which is not sensible in a nonlinear model. I know there are other...
View ArticleMixed - weights scaling
Hi everyone, I am using the Mixed command to run a two-level linear mixed model with survey weight. I have conditional weights at both level. I am thus wondering if it is necessary to scale the...
View ArticleMissing Data patterns Multilevel model
Dear All, I am currently learning multi level modelling and I got a problem with one of the commands. The command is: tabulate occ if phf~= However, it says both in the command and do it list that the...
View ArticleModelling time-varying covariates in linear mixed models
Hi! I am a phd student currently analyzing the relationship between road traffic noise exposure and bmi in children. Both noise and bmi are measured at several different time points. I want to include...
View ArticleCount Panel Data problems : autoregression and fixed-effect models
Hello Statalist members. I post this message because i have an issue with my analysis. I have a count panel data set of 719 heathcare facilities from 2011 to 2014. I need to explain the incidence of...
View ArticleFind the "best" cut-off based on another variable
Hi everyone I have a health variable, that is a index of health problems. The variable has values from 0 (no problems) to 11 (11 problems). I would like to dicotomize the variable, but I would like to...
View ArticleARCH & ARIMA
Hi, I have a question regarding the differences between the coefficient of ARCH and ARIMA output. I used: Stata example dataset --> Stata 14 manual datasets --> Time series reference manual...
View Articlesvyset
Hi, I have a database in which there are patients. Sample size is 1000. (100% response due to spare sample/replacement etc) 20 doctors were involved. Out of 50 doctors, 20 were selected and 50 patients...
View Article