Detecting inverted duplicates over two columns
Hello, I have searched for an answer to this simple question on previous forums, and cannot find the specific situation I am hoping to rectify. I am looking to detect duplicates, but they will be found...
View ArticleGap between title and axis
Hi, I would like to know if there is an option I can type in my code when generating a plot that is equivalent to the following changes from the graph editor: Axis properties --> Advanced...
View ArticleAdding a vertical AND horizontal line using coefplot
Hi statalist! I'm using coefplot for an event study where year -1 is the reference year. I have a horizontal line at 0, but I want to add a vertical line between year -2 and year 0 (where year -1 would...
View ArticleT Tests and Wilcoxon Tests
Hello Members I had been working on EViews for some time, I shifted to Stata now, since I am new, I have been trying to calculate T and Wilcoxon Tests of Difference (of two variables). I have about 24...
View ArticleMulti-nominal regression interactions with margins and margin plots
Hi everyone, Does anyone know how to do the margin command for multinominal regression for a certain outcome? I'm trying to get margins to plot school year's use of energy drinks over time using...
View Articlejoin-paired-points
Help please.. gen id = _n stack IVTTSVI1 FEVI1 id IVTTSVI2 FEVI2 id, into(X Y ID) clear egen Xmin = min(X), by(ID) gsort -Xmin ID X gen Y1 = Y if _stack == 1 gen Y2 = Y if _stack == 2 graph Y Y1 Y2 X,...
View ArticleHow to construct some summary statistics for panel data
hi all, I have this panel data which reports the customer-supplier linked firm with variables date, stic(ticker of supplier), ctic(ticker of customer), and siccd_sup which reports the industry category...
View ArticleMixed-effects model with lagged variable
Dear community, I have a dataset of 115 completed observation rows (or event) of 75 different companies for the years 2004 to 2016. I have 6 independent variables and 3 control variables. As my dataset...
View ArticleFixed effects
Hi guys! I have the following problem. I would like to replicate the following xtreg , fe: Code: xtreg tasso_crescita_salespr L.log_sales L.dummy_2 L2.dummy_2 L3.dummy_2 mean_gr_rate_atc2 recalls_sales...
View Articlewide to long...but different.
hello, i am working with a data set that i would like to analyze using st commands. however, the data i was given is not in the right format. there is one line per patient with several dates that...
View ArticleInterpreting coefficient in a log-log model
Hi everyone, I am currently working with a log log model specification. To my understanding, the correct interpretation of the coefficients is 1% increase in x is associated with a ß1% increase in y...
View Articlemean command postestimation for variance
Hello, I have a question regarding accessing variance estimates from mean command. In my data, there are treatment and control groups over 6 years. I want to test if the variance estimates are...
View ArticleIssue with mean x, over(y) command in Stata 16
There is an issue with the mean command in Stata 16, which does not exist in Stata 15. Here is an example: mean rel_percapgdp, over(war_year) the variable war_year ranges from -20 to 20. I get the...
View ArticleFuzzy String Matches - optimize procedure; reclink(2) or matchit? Automated...
Dear all, I trying for a new project to matching fuzzy strings together using -reclink-, -reclink2- and -matchit-. I am using STATA 15 (64-bit) and Windows 10. Since all of the aforementioned...
View ArticleT Tests and Wilcoxon Tests export to MS Word or MS Excel
Hello Members I had been working on EViews for some time, I shifted to Stata now, since I am new, I have been trying to calculate T and Wilcoxon Tests of Difference (of two variables). I have 24...
View ArticleSolve Macroeconometrics Model and Forecast
I am trying to solve a macroeconometrics model of my country using STATA. Model has 7 endogenous variables and 7 equations. There is consumption, investment, TFP, capital etc. variables. Actually, I...
View Articlemulticollinearity test variables in a panel data
Hi, how can I run a multicollinearity test in Stata 12 between variables in a panel data? Thanks!
View ArticleComplex Reshape Long to Wide
Dear Stata Users I am dealing with a complex reshape wide problem. Here is an input data: Code: * Example generated by -dataex-. To install: ssc install dataex clear input float date str6 code...
View Articleproblem with Ivreg2 result
Dear All, After running my regression with ivreg2, in last portion of the result I saw error massage which contains the following: Warning: estimated covariance matrix of moment conditions not of full...
View ArticleSequence Index Plot
Dear Stata Users I am trying to show how individuals move between a set of conditions or states over time. I think a sequence index plot should be able to visualize that. HTML Code:...
View Article