Manipulating Y axis using "stripplot" - getting rid of...
Hi all, I've been Googling an answer to this for FAR too long and am wondering if anyone can help. I'm trying to graph a series of box plots using "stripplot" on STATA/IC 13.1 . I am plotting the...
View ArticleRegression on Continuous Variables with ANOVA Normalization
Dear Statalisters- I would like to run a one-way ANOVA-type regression of a continuous variable on a categorical variable and get the output with ANOVA normalization instead of dummy-variable...
View ArticleSubtracting Dates Code
Hello, I need help generating a new variable where it subtracts the 1st date from the 2nd date observation. My data is similar to that of below. This is from the same observation and I want to subtract...
View ArticleTest proportional odds assumption in a long-format data
Hi, I am going to perform -ologit on the dataset. The dataset is in long format with outcome variable is label as 3 ordinal levels (1, 2, 3). Before proceeding with -ologit, I need to use -omodel...
View ArticleVariable "was int now float"
Dear Stata users, I would like to know your idea on something strange to me. I'm appending some dataset (in order to create one big dataset), and after have harmonized the variables I'm interested in,...
View Articlehow to conduct bootstrapping for intraclass correlation (test-retest...
Hi, I performed intraclass correlation in STATA (. icc) to assess the test-retest reliability of my study participants (basically, they completed a similar set of questionnaire 1 week apart). I then...
View ArticleMaking all my command with fweight
Hi all, Actually I am using [fweight=var] in all my commands , I wonder if there is some method for statement in the begin of do-file to make all my calculation using [fweight=var] and avoid add...
View ArticleGenerating a new variable as the mean of multiple variables
Hi, I want to create a new variable called mean wage which is going to measure the average wage by job. I have 2 wage variables in my data. One for the employees and one for the self-employed. I have...
View ArticleCreate list / columns for regression coefficients of various (simultaneous)...
Dear all, I would need some help with a problem that occured in connection with my master thesis and, which, as I hope, can be answered relatively easily by more advanced users. SpecificalIy, am...
View ArticleCollinearity problems
Dear Statalist, I have cross-sectional survey data and I want to determine how much an individual trusts others given the democratic history in his country. I constructed a variable 'demcapital' that...
View ArticleFixed effects for large non-panel data
Hello, This is my first Statalist post, and please forgive me if I'm not explaining the question clear enough. I have a large dataset with over 4 million observations. Major variables include shopping...
View ArticleRepeatability versus ICC versus Concord
Dear all, I would like to hear about you if there is any alternative to do Repeatability analisys instead ICC or Concord (Lin) , which , by the way, some times is difficult to choose between them. In...
View ArticleGenerate new variable from single variable with multiple values
Hi Statalist, I have a longitudinal dataset, with ~4 million observations and 3 variables (id, year_month, code). The complete dataset covers years (2013-2016) with each observation representing the...
View ArticleGenerate New Variable that contains Character
Hi, I wan't to generate a variable that includes the characters that match "AAH" "AHC" "AMG" "AURORA". My code thus far is - gen facility=1 if strpos(_FACILITYNAME, "AAH" "AHC" "AMG" "Aurora"...
View ArticleMake Windows Behave like Mac
I recently switched from the Mac version of Stata 12 MP to the Windows version of Stata 14 IC. I'm probably one of the few that doesn't like to have multiple Stata windows open at the same time. Is...
View ArticleHAUSMAN test for neg bin Random and Fixed effect models
Hi! I'm using negative binomials models and I'm turning them into Random Effects Models and Fixed Effects Models (using for random effect the command "menbreg" and for the fixed effect the command...
View Articlefinding ID where more than one observation of varA is missing, but still...
Hello, I wish to list all observations of all subjects where at least one observation (of variable -make-) is missing (within variable ID). Thus, in the following reproducible code, I'm seeking to...
View ArticleUpdate transition probabilities
Hello, I am looking for a way to update the transition matrix obtained using the Code: xttrans / Code: xttrans2 command. The data I am working on is a panel dataset with individuals observed across 15...
View ArticleHow can I duplicate the content of the variable taking into account the ID...
This is my first request, so I ask to excuse possible "mistakes". For the variable X, I have only expressions for one year (1977). However, I must also have expressions for this variable for the years...
View ArticleProbit Model with Binary endogenous regressor
Dear Statalist, Can anyone help me with the instrumental variable probit model and my data is cross section. I have a dependent variable which is (y) binary has two values, and a set of exogenous...
View Article