A question about GDP interacted with Quarter Fixed Effects
Hi! What could be the idea behind interact GDP with Quarter Fixed Effects in a Difference in Difference model (GDPfor2014i *QuarterFEt)? I understand that treatment could somehow effect GDP if it was...
View ArticleGetting value of specific value label
Dear Statalisters, I've got a (probably very easy) problem and I'm somehow blind for the answer.. I'm using the vallist statement (I know there are several other statements which produce simlar...
View ArticleExporting/Displaying boottest results
Hi everyone, I am running a difference in differences regression with Panel data on Stata version 14.2. I have state-level clustered standard errors, but since there are only 32 states in my data I...
View Articleunsuccessful merge
Hello everyone! I am trying to merge two data files from different sources using the command merge 1:1, based on a string variable Country. However, the merge is never successful, even though the names...
View ArticleExpanding backwards
Hello, Im working on a dataset and want to expand my dataset backwards for 2 months extra. The dataex I added shows first the GVKEY (company ID), then the date and then the variabele (DLCQ). For...
View Articlenpregress and Bandwidth selection with Bootstrap CI
Dear all, I have a question that is both technical (Stata) and theoretical. Based on the help file for npregress, and some hands-on replication, it seems that when we request bootstrap standard errors,...
View ArticleHow to do an analysis of transition frequencies in a placebo controlled study?
Hi everyone, I want to do an analysis of transition frequencies in a placebo controlled sleep study, but I don`t know how to do it. I`m using Stata 15.1 for Windows. I have read about the command...
View ArticleExporting/displaying boottest results
Hi everyone, I am running a difference in differences regression with Panel data on Stata version 14.2. I have state-level clustered standard errors, but since there are only 32 states in my data I...
View ArticleSurvey Weights in the Construction of Adult Literacy Rates
Hi, I have household survey data from a country with the following variables: district ID (distid)household ID (hhid)size of household (nrt)total household monthly expenditure (expr)educational...
View Articlesuest alternative for panel data
Hi, I have a panel GDP data for over 200 countries for the years 1990 to 2018, which I am reducing to 6 different sub-samples. I am estimating the effect of 9 year dummies in each of these subsamples....
View ArticleAppending models using coefplot
I would like to merge multiple models into the same series (crude/adjusted/further adjusted models) from regression results stored from a loop.I would appreciate if someone can help with syntax below....
View ArticleChanging the line colour of panel data line plot according to an indicator...
Dear forum, I have a set of longitudinal patient data representing patient id (subjid), time in study (time), lab reading (aval) and a dose indicator variable (dose) that can take values 0, 1 or 2....
View ArticleGraph export multiple using loops
I have been trying to create and export multiple graphs using the following code, instead I am getting a single graph that essentially does what I want but crams all my graphs into one: Code: local...
View Articlematch couples in a pooled quarterly cross section (Q1 only) with hhid, wave...
Dear Statalist, I am trying to match couples (married or cohab) in a pooled cross section. I have a household ID (hhid) for every quarter that appears only unique to a particular quarter. To keep...
View ArticleHelp estimating 3d panel data
Hello, I'm working with this dataset (that's a sample, it is balanced and goes until 2016). Array and I want to run a fixed effects regression, so I type the following comands egen...
View ArticlePSM method again
Hello every one i m doing my analysis for my research and i need to do endogeneity test by using PSM regression my issue is i do not know how to run this test my model as follows: HTML Code: abn_prod...
View ArticleHelp with merging variables
Good afternoon, I am new here and would greatly appreciate some help. I have two variables about weight in the same dataset, one with integer values and the other with decimal values. I would like to...
View Articlematrix operation not found
Dear All, I need some advice on how to deal with an error: matrix operation not found I get the error after running this command (this is an excerpt). Code: qui tab povub80 povub85 [aw= popw],...
View ArticleCount the number of unique observation conditional on variable
Hi Statlist users, I am currently having an issue counting the unique number of observation conditional on another variable. In particular, I want to do the following: Session_district Facility_id...
View ArticlePoisson and Negative Binomial Distribution and Stata Codes
Dear Stata Forum, My question relates more with the theory of Poisson and Negative Binomial Poisson as it does Stata codes. I hope you are still able to help. With regards to the theory, I would like...
View Article