Customize the table being exported
Suppose I would like to export a summary table, just as follows: sysuse auto,clear estpost sum price mpg rep78 esttab, cells("count mean sd min max") noobs Below is what I got: count mean sd min max...
View ArticlePooled OLS vs FE and Two way FE
So I ran couple of different models to see how does position influence overall rating of a player. And the results I got are not what I expected. So I am curious if I did something wrong. In the...
View ArticleWhat's wong with data?
Dear All, I'm doing an event study case now and would like to calculate the CAR, but somehow I got the same CAR results of all variables...How can I make it right? Could anyone help me please? Here are...
View ArticleHow to change shortcut keys for mac
I assume most Stata users don't like mac, but I am stuck with one. I need to change the shortcut key for execute(do) from [Command+Shift+D] to [Command+D] to make it more similar to windows. Any advice...
View ArticleBalancetest with logit....
Hi Statalist, Writing a small assignment based on a survey i made. It was set up as experimental treatment survey, where one respondents where sorted in to two groups based upon their birth date. Then...
View ArticleMerge two data sets with unit observations from data set A not data set B.
Hello, I'm new to Stata and please help. I have a question about merging two data sets. In data set A, I have a variable Students with 5 observations and some other variables. In data set B, I have a...
View ArticleConsecutive observations
Dear all, Suppose I have the following data Code: * Example generated by -dataex-. To install: ssc install dataex clear input str2 id float(m1995 m1996 m1997 m1998 m1999 m2000 m2001 m2002 m2003 m2004...
View ArticleXTGLS and aggregated level fixed effects
Dear Stata listers, I have a question regarding XTGLS and the use of dummy variables for panel units. Firstly, I would like to refer to http://www.statalist.org/forums/foru...-square-values where Clyde...
View ArticleA loop question
COUN VILL HOUS P1_3 110111 1 1 3 110111 1 1 3 110111 3 2 3 110111 7 4 3 110114 1 1 3 110114 2 2 3 110114 2 3 3 110114 3 4 3 110114 6 5 3 Code: foreach COUN in 110111 110114 { foreach VILL in 1 2 3 4 5...
View ArticleDrop specific observations
Dear Stata users, My data-set contains two variables (District) (Ethnicity), can anyone help me how to find and drop those districts that are ethnically homogeneous? The District variable has 344...
View ArticleConstructing weights for combined survey cycles for NHANES 2007-2014
Hello everyone, I have combined and am attempting to analyze data from several NHANES (the 2007-2014) survey cycles. In the continuous NHANES tutorial, it states that in combining two or more 2 year...
View Articleidentify relations between different sectors within the same id
Hello, here it is the example of my data (I use stata12), the real sample contains more than 60000 observations. * Example generated by -dataex-. To install: ssc install dataex clear * Example...
View ArticleCalculating statistics based on a panel with repeated time values
Hello Stata users, I would like to see how the average values based on a specific time window affect future values up to five calendar years in the future. Specifically, in a time series analysis, how...
View ArticleWhat to do with missing values after variable creation [panel data]
Hi, I have a panel data and I have created a variable through a 3 years rolling window, which essentially means that the variable takes missing values for the first 3 years of each firm observation....
View ArticleKeeping only the first observation
Dear Stata Users, I have a small challenge. I have enormous data with repeating information. I would like to keep only the first row per ID. Here is sample data: Code: * Example generated by -dataex-....
View ArticleHow to reshape dateset
Dear All I have a question about reshaping dataset. I have a following dataset. . Monitor_A Monitor_A Monitor_A Monitor_A Monitor_A Monitor_A Monitor_B Monitor_B Monitor_B Monitor_B Monitor_B Monitor_B...
View ArticleCounting spell length
Dear Statalist, I am doing an analysis, where I would like to control for the length of the last unemployment spell. The analysis looks at reemployed respondents with regard to a dichotomous dependent...
View ArticleAdding average line in Line-Chart?
Hi, I recently asked a question (here) - which I got a great answer for. I got a related answer today: I want to add an average line to an ensemble of line in one chart. Here is what my chart looks...
View ArticleExport dataa problem !
Hello, After getting all numbers on Stata and export them to Excel. Points appear in the decimal area. Does someone know how can I convert it ? (Look at the B4 cell) Thanks a lot
View Article