Correct Modeling of Data
Stata Experts: I have been struggling for several days with my data analysis plan and I am hoping for some clarity. 1. I am working with ECLSK:2011, a nationally representative dataset which requires...
View ArticleInteracting an independent variable with fixed effects
Dear Statalist members, Thank you so much for reading this post and helping me answer my question! In short, my question is how I can run a regression in Stata which contains not only fixed effects,...
View ArticleTransforming time series data into Panel data
Hello, I have a time series dataset, downloaded from UNCTAD. Then I pasted the data into Stata datasheet. The data is the following var1 var2 var3 var4 var5 year 1980 1981 1982 1983 x 1.2 2.3 3.4 4.5...
View Articletest for statistical difference
Hi Stata fam I would like to test for statistical difference between responses from two different populations, a intervention site and a control site. For example, i would like to know whether there is...
View Articlereghdfe - "noconstant" as standard option
Dear community, I would please like to ask for your help concerning the following question. Recently, the server I am allowed to work on upgraded to STATA 16 and during the course of which, a clean...
View ArticleTwo-way table where cells are %s and Totals are frequencies
Hello, Is there a way to create a two-way table where the cells are percentages and the totals are the actual frequencies? I'm sure I am missing something obvious. So something like: HTML Code: ta var1...
View ArticleCompeting risks in survival analyses
Dear reader, I would like to know the difference in my survival analysis approach. I have 4 types of events that I want to examine, and not everyone experiences an event. These events are dummies in my...
View Articlecorrelation and proportional weights
Hello, I am not able to use proportional weights with correlation but can use analytical weights. Can anyone help me to explain the reason? I am able to understand some intuition like correlation is...
View ArticleHandling large percentage of zero-valued observations in the dependent...
I am writing a paper using a panel dataset in which my depepent variable has an large percentage amount of zero values observations. Those zero values are real zeros, I mean they are not missing data...
View ArticleSetting manual coefficients
For a hypothetical case in class the following question is asked: We have the following model: Y = β1+ β2*Area + β3Labor + β4*Fertilizer + u Each labor day increases production with 0.01 ton, so...
View Articlegenerate or replace a variable -- with a string type
Hi guys I have a string variable in the dataset. It contains a long list of heart diseases. I would like to categorise it into a few ones, using keywords (e.g. one of the heart diseases contains the...
View ArticlePanel Regression versus Dynamic Models
Dear all, I am trying to replicate a study, where I am regressing the change in capital expenditures(DELCAPEX) is regressed on cash flows(CAFLOW) and Market to Book ratio(MB). I also want to add Lags...
View ArticleIssue with xlabel command
Hello, I am trying to change the labels of a graph (without using the editor) Code: graph box job_hours if expectation == 2, over(gift_received) Now as you can see from the attachment the x-axis has...
View ArticleForecast errors
Hi Statlist, I would like to compute the variance of forecast errors in a panel data setting as indicated in Array . In particular, I have build up what is called formula 2 in the manuscript as: Code:...
View ArticleApplying Bai-Perron Test to Time Series data structured in panel format
Hello, I have a panel dataset where data is there for each country. I want to run the stata command for each country. https://www.wiwiss.fu-berlin.de/fach...G_V02_Main.pdf In this paper, the author...
View Article2:Setting manual coefficients
Hi Listers, Y = β1+ β2*Area + β3Labor + β4*Fertilizer + u This time its given that B4=3*B3. Which model should you use? Give the estimates of B2, B3 and B4. Thanks!
View Articlesummary forest plot for meta-analysis
Hello, I am doing a study-level meta-analysis with different outcomes. In addition to the standard forest plots, I would like to produce a summary forest plot, by removing individual studies and just...
View ArticleEffect of schooling on menstruation methods
Hello, I am trying to find the effect of schooling on mensuration methods from Indian context.These methods may include use of locally prepared napkins, cloths, sanitary napkins, tampons, etc.My...
View ArticleKeep the first observation within a moving 30-day window
I have the following dataset. I want to keep d=1 for the first observation within 30-day moving window, and replace d=0 if the observation is the 2nd and nth observations within the window. My...
View ArticleIs it possible to not set values of optional integer arguments with the...
When specifying optional arguments integer arguments using the syntax command it is usually necessary to set a value. Is it possible to get round this feature? For example I am writing a program where...
View Article