information ouput at specific period and amount
I have information 1)about health problems and not health problems tab EyPrMC1 /*tab EyPrMC1 EyPrMC1 | Freq. Percent Cum. ------------+----------------------------------- 0 | 18,309 98.82 98.82 1 | 218...
View Articlerearranging and summarizing data
I have a Stata dataset (let's call it dataset1) which has data like this (fictitious data) dataset1.dta metro metro_code variable1 variable2 variable3 Akron AKRO 1 9 16 Albany ALBA 2 8 30 Albuquerque...
View ArticleProblem with Mixlogit or Condition logit implementation
Hi! I am, Stephen Angudubo, new to that statalist forum and Stata but working hard to get used to the software I implementing a discrete choice experiment to model cassava planting material...
View Articlewrong number of observations after recoding missing data
I have this outcome that I need to recode in up to 4 units and more than 4 units tab ampuwk00 Number of | units| | Freq. Percent Cum. ------------+----------------------------------- 0 | 1 0.04 0.04 1...
View Article-numdate- available on SSC: program to generate numeric date variables
Thanks to Kit Baum as usual, a new package numdate is available from SSC. Use : ssc inst numdate to install. Stata version 12 is required (but see below for a note for any people on version 10 or 11...
View ArticleConvert .gwt to stata format (spatial weight matrix)
I'm trying to convert an matrix of weight in .gwt to STATA, however I'm having some problems. I'm using the following commands: ssc install sppack spmat import myobj using municipios_2010_4v.GWT, geoda...
View Articlespatial analysis - spgrid error - "block should be at least 1"
I am trying to conduct spatial point pattern analyses in Stata, and am receiving an error while trying to use the command: spgrid in Stata SE v12. The error reads: "block should be at least 1" r(498)...
View ArticleStoring J-stat / F-stat from ivregress gmm
Hi all, I'm having trouble keeping the stored results from "estat overid" and "estat firststage". I feel like I'm doing everything "correct", but the results are not tabulating in esttab properly. I...
View ArticleSum scores to create a scale
Hi all, I need some help in the right choice of commands in the following . I have 15 binary variables and 14,000 observations. A score of 1 is assigned to each item answered “no”, 0 to items answered...
View ArticleUnit Root Test Error
Hi again, I was trying to run a unit root test on my unbalanced panel data and I received this error. From my knowledge, the Fisher tests should work on unbalanced panel data? I am unsure what is...
View ArticleClustering st. errors removes significance
Dear all, I have been running a regression reg y x1 x2 x3 x4, vce (cluster region) where x1 - log GDP per capita, x2 - generalized trust in country and region is region code from 1 - latin america to 8...
View ArticleNeed help with the code to create a signle data file out of 1,200 txt's
Hello dear forum members, My data include roughly 1,200 *.txt files, where (a) * is a 3 to 7 digit non-consecutive number representing participant's id, and (b) the contents of the file is...
View Articleesttab
Hi, I have created a table of means by using estpost and esttab, Im having difficulty with attaching the level of significance (represented by *) after each mean value, the following are the commands I...
View ArticleName conflict in SJ packages - rdplot
FYI Both SJ-10-1 and SJ-14-4 contain a rdplot program: SJ-14-4 st0366 . . Robust data-driven inference in reg.-discontinuity design . . . . . . . . . . . . . S. Calonico, M. D. Cattaneo, and R....
View ArticleAssociation between 3 variables?
Any help appreciated, I'm a grad student just learning stata! The problem is taken from a prospective cohort study where the particpants have been followed for different lengths of time. It involves 3...
View ArticleHow to test difference in coefficients between two models after XTLOGIT?
Hi StataList Forum members I am performing two logistic regressions using xtlogit with odds ratio (or) option. The models are: Model 1: xtlogit futsup age gender self_protective, i(country) or Model 2:...
View Articleguidance for if function
Hi all, I am new to this forum and also relatively new to the stata software package. I've been using it for several months now for an econometrics university course. I am currently having some...
View ArticleUsing Bayes function of Stata 14 to deal with measurement error problem
I am running a linear regression model for which some of independent variables have measurement error problem. Someone suggested me to use Bayesian MCMC and fortunately Stata 14 has this function. Who...
View ArticleReorganizing data to eliminate repetition and have only unique values
Hi All, I have two columns of s1 and a1. 1,2, and 3 are s1 values which repeat several times and each has a fixed corresponding value in a1. For example if s1 is 1 a1 is always 5 and so on. I want to...
View Articledeleting observations for a time period
Hi, i am doing event to time analysis and i have already changed my data-set from wide to long format. Essentially, i have several observations but running for repetitive time range but with changing...
View Article