Use results store in matrices
Dear Statalister, many commands automatically store results in r(), either scalar, local or matrices. I focus in the latter case. I'd like to access directly to some values in the matrix stored. See...
View ArticleGraphing median of groups of observations with a panel dataset
Hi, I'm using a panel dataset with dimensions ID and year for the i and t dimensions respectively. I would like to produce some summary graphs for certain subgroups of ID. For example I have a variable...
View ArticleDestring Error Message "str3 not allowed"
Does anyone have any idea why I am getting the 101 error message below? This seems like a very simple application of -destring- but it will not work. Harlan . des rds17 storage display value variable...
View Articleadding "%" to marker label
for a line graph, I want to add marker labels showing the actual percentage at each point; this is straightforward (see code below); however, my client wants a percentage sign ("%") at the end of each...
View ArticleRegressing separately on state, or combined in one regression gives different...
Dear all, I'm doing research to the effect of coffeeshops. The problem I encouter is the following: When I use the following code, I expect that the treatment effect is given for every municipality...
View Articlelegend's vertical display for x axis
Dear all, Is there a way to display the legend of a graph's x axis in a vertical way? It would be useful because displaying in a horizontal way (which is default) makes it quite messy. Thank you.
View ArticleSnijders and Bosker R2 higher than expected tue to intraclass correlation
Hi Statalists, after running an xtmixed-regression I estimated the Snijders and Boskers R2 via by mltrsq. It has a value of 0.52, although my intraclass correlation says, that there is only a variance...
View ArticleModelling Zero-inflation in (G)SEM-Framework
Dear all, I'm doing research linking personal characteristics and time spent on specific activities (in minutes). My data includes four indicators that are supposed to measure the individual...
View ArticleLooking for time efficient code to conduct and store 21 prtest
Hi all, I had a previous post attempting to get some assistance but I think I didn't provide enough informationhttp://www.statalist.org/forums/foru...on-comparisons. Below is a series of proportional...
View ArticlePanel data with IV: commands and some other issues
Hello, Im wokring on a panel data with IV for 140 countries from 1984 to 2013 (first estimating a global model, then only doing it with coutnries from latin american region-using dummies-) My question...
View ArticlePower calculations when different number of observations per cluster, and...
I have a given experimental design for a clustered RCT, and I am using iterations of the code below to determine the MDE for my given design. I'd like to compare some treatment arms with different...
View ArticleGeneralized Impulse Responses (VAR model)
Dear all, Is there a procedure to obtain directly Generalized Impulse Responses (Pesaran and Shin, (1998), “Generalized Impulse Response Analysis in Linear Multivariate Models”, Economics Letters, 58,...
View ArticleLogistic regression: Effect modification
Hello guys, I think I have a moderator variable in my logistic model. My DV is whether or not patients in a mental institution were involved in use of force (UOF) incidents with the staff. The ID...
View ArticleFour-Way Interaction for Dummy Variables
Dear All, I am implementing a four-way interaction for dummy variables. I do have four dummies: j, k, l, m. Each of them assumes values 0 or 1. To build up the term j*k*l*m I insert four first order...
View ArticleEstimating Quadratic Almost Ideal Demand Systems (QUAIDS)
Dear Statalists, I want to estimate household energy demand using cross-sectional survey data. My question is how to compute respective energy prices and budget shares so that I can make use of the...
View ArticleUsage of /// in stata 14.1
Dear All, I am currently trying to learn multilevel modeling. One of the exercises that I have been doing requires me to use /// for seperating commands. However, when I use this in Stata 14.1, it does...
View ArticleStrange formule come up when adding data
I have a problem when I rename some data from a exciting data set and when I enter new data via excel. Some random variable change in a kind of formule. I have no idea why and also the formules are...
View ArticleCalculate weighted means for each year and company
Dear fellow Stata users, I want to calculate weigthed means for companies comprised of monthly values for one year. In my data set, however, their are mutiple observations for each company and...
View ArticleModification of Huber-White standard errors to account for clustering
Hi, I am currently examining the effect of banking crises on life expectancy and have panel data from 130 countries over 45 years. I would like to use a modification of the Huber- White sandwich...
View ArticleHow to display different reference categories when stacking models using...
Hi, I am using -estout- (available from SSC) to stack models but since my independent variable is the same using the -, refcat()- option isn't working. I know why this isn't working, but would anyone...
View Article