Lagged non-linear independent variables.
I came across a paper that write the following: The first set of independent variables, REPRESSION(1)i,t-1, REPRESSION(2)i,t-1, REPRESSION(3)i,t-1, REPRESSION(4)i,t-1, are binary indicators measuring a...
View ArticleInterpreting coefficients when there are dummy variables present
Hi, I had a question about interpreting coefficients on Stata. I have a continuous variable, call it x, which has values ranging from -2 to 2. I have also created a dummy variable which equals one when...
View ArticleRestrict decimal places when exporting -tabstat results to excel via -putexcel
Seems this was posted twice. See the other post here: https://www.statalist.org/forums/for...l-via-putexcel
View ArticleRestrict decimal places in -tabstat results exported to Excel via -putexcel
I want to export a lot of descriptive statistics produced via -tabstat to Excel via -putexcel. I am working on a remote server which is not too happy about exporting results containing 16 digits to my...
View ArticleMargins at specific values of one variable, expressed/computed as one other...
Dear All, In a panel data set of 50 groups, id_group and 3 continuous variables: Y, 10 values by group X, 10 values by group Xspecific : results of previous estimation procedures. One unique value, in...
View ArticleFixed effects for ID in a linear regression?
Hi all, Just a rather simple question that I can't get my head around. I have a dataset in a long format with around 1000 IDs. About 200 of them occur two times (the collection of the data was over two...
View ArticleMemory usage for ARIMA
Hi all, I have a very curious problem when running rolling forecasts with ARIMA. In every iteration (non-recursive forecast), Stata becomes a little slower, but eventually very slow. The first model...
View ArticleRegression
Hello everybody, I have a problem with my regression within STATA. I have a longitudinal dataset of companies with data for each company for the years 2010-2016. I have an dependent Variable that...
View Articlecreating a dummy variable by group
This is an example of my data: ----------------------- copy starting from the next line ----------------------- [CODE] * Example generated by -dataex-. To install: ssc install dataex clear input long...
View Articlecreating a dummy variable by group
This is an example of my data: ----------------------- copy starting from the next line ----------------------- [CODE] * Example generated by -dataex-. To install: ssc install dataex clear input long...
View ArticleHow to calculate the difference in yellow cards
Dear All, I am running an analysis about the behavior of some footbal teams in the Italian championship. An example of data is attached: Code: * Example generated by -dataex-. For more info, type help...
View ArticleAssigning Sectors to Companies for S&P500
Good afternoon, I have a list of all of the companies within the S&P 500 on a file within Stata. Does anyone know if it is possible to add a new column to assign the relevant sector to each...
View Articlegenerating a variable when duplicate is present
Hi forum I have a string variable "emails" with approximately 4000 entries of people who received a specific campaign. I have now received a second list of emails, lets call it "compliers" this is the...
View ArticleHow can I multiply category variables by discrete (fractions) variables?
Hi STATA, I want to create a new variable (Age * Education levels). But the problem is that the age variable and education levels variable are categories, for example, the 'Age variable' has five age...
View ArticleCorrelation Index by Cerquira and Martins (2009)
Dear all, I am trying to calculate the CI by Cerquira and Martins (2009) at the moment but it does not really work. The suggested formular looks like this: Array where i= country i and j= country j t:...
View ArticleGRumblers; groups homogeneous with each other and heterogeneous within...
Good evening to everyone, I was wondering if there is a Stata pattern or command that can reproduce the GRumblers ( https://scholar.harvard.edu/msparrow/grumbler ) outcome? Many thanks in advance for...
View Articlemenl and substitutable expressions
I am fitting a logistic growth model with menl using the substitutable expressions feature. Here is an example. menl DSS = {k:}/(1+exp(-{r:}*(Day-{d:}))), define(k: i.GCode ## i.R Uk[MID]) define(d:...
View ArticleSTATA 17 installation java.lang.UnsatisfiedLinkError
I recently upgraded to STATA 17 and once I did so (without errors or obvious problems) then I was no longer able to able to Import text data (delimited csv). When I do (either in code or using GUI) I...
View ArticleSTATA not considering all observations during regression
Hello all, I am running a regression to analyse the impact of per capita spending on education on student test scores. The test score are obtained from the PISA survey which is conducted every 3 years....
View ArticleAdding an extra bar to an hbar graph
Dear all, I am using stata 17 and have produced an hbar graph with the following code: graph hbar, over(nonwhite) over(season, relabel(1 "Season 16/17" 2 "Season 17/18" 3 "Season 18/19" 4 "Season...
View Article