Does anyone have ever used 'aareg'?
Hi, I find a website which introduces a new command 'aareg', which is quite similar to 'areg'. Here is the link: http://www.djiboliz.com/stataguide/r...ado/aareg.html However, it seems that it has the...
View ArticleMerge data problem
Hello, I am trying to merge two data sets (m:1), but the results give me always zero matches. Although I am sure that the variable name is exactly the same. How can I solve this problem. Thank you,
View ArticleError message with travel time command
Hi, I want to compute the travel time and distance between different points in a city (identified by an id variable and latitude+ longitude variables: lat and longi) and one central location...
View ArticleExpanding the dataset for running a rank ordered logit model
Hi, I have a dataset of parental school choices, parental/household characteristics, and school characteristics using which I want to estimate a discrete choice model. The children (600 of them) are...
View ArticleProblems with reshaping
Dear Statalisters, I am facing the following difficulties with this dataset imported from an Excel spreadsheet. As you can see below, there are three questions (QuestionID) asked to each individual...
View ArticleHow to label a scalar or global variable?
Is it possible to label a scalar or global variable? For example, in the code below, I would like to label Hx as "High X" and Lx as "Low X". Is there a way to do so in Stata 14? Code: sum x global...
View Articlehow to merge rows by aggregating one variable's observations
Hello, everybody! I have a panel (country/year) with election results for different parties that vary across countries and time. I would like to aggregate vote shares of parties in the same family (the...
View ArticleHow to save a list of Alphas?
I created many new variables (around 40) in a dataset based on existing old variables. I plan to get the Cronbach's Alphas of all the new variables and save them to a new file. The way I am creating...
View ArticleMean of variable based on percentiles of another
Hello, I am trying to create the mean of a specific variable based on the for each 10% percentile of another. The complication is that the data are frequencies so that each observation refers to one or...
View Articleintra rater reliability, kap
I have a categorical dataset with two reviewers. I need to determine their agreement. Would I use kap var1 var2? Here is a hypothetical dataset that would be similar to the format of what I'm looking...
View ArticleNo significant variables -- Is this the reason why?
Dear all When conducting this probit model, none of my variables are significant (no p values are less than 5%). I think it is because only 33 observations (from the 405 observations) are used. This...
View Articleoutreg2 does not allow me to export F-statistic
I encountered a weird problem when trying to export results from regression. The code I used is based on the help file of outreg2: Code: probit access sp500 nyse $xvars utility_ind i.fyear, vce(cluster...
View ArticleFind out which observation is causing unbalanced panel
I have a panel dataset with data for different countries for the years 1975, 1980, 1985, 1990 and 1995. When I run the xtset command, I get the following result which suggests that my panel is...
View ArticleDiD with treatment status change over time (i.e., the status is switched on...
Hello, I have a panel data, on which I want to evaluate the impact of adopting a program on the economic outcome. The context is over 10,000 individual online sellers, the program is a special...
View ArticleHow to modify orientation of (y)title text
Dear Stata Users, I encounter a problem about graph's ytitle modification. In Stata's twoway plot, the default setting of ytitle is making text reads bottom to top. And with some options, we can modify...
View ArticleGenerate variable containing ratios of variable values per group
Dear Forum, I have the following very basic problem I`m struggling to resolve. Unfortunately I couldn`t find an appropriate solution in the forum, but probably I was just unable to transfer the right...
View ArticleCalibration test after Cox with tvc
I am usig STATA 15.1. I need to make a calibration test after a Cox model that includes a tvc variable. Therefore, since it is a non PH model, the 'stcoxgof' (that I usually use wit Cox PH models)...
View ArticleLogit (not concave, pseudo r2 = 1)
Dear Community, I'm really stuck trying to solve the issue with the logit regression that I'm running. My dataset consists of around 32 independent variables (most of which are dummy variables, many of...
View ArticleHow to merge datasets with monadic and dyadic units of analysis?
I want to combine datasets with monadic, country-year, with dyadic, interaction of two countries in a year, unit of analysis. I have ccode (unique country code) for every year in the monadic datasets...
View Article