Quantcast
Channel: Statalist
Browsing all 73281 articles
Browse latest View live

Creating familyid Help (Stata 13 on Windows)

Hi All, I am working with a dataset that include 1600 subjects. Each subject has variables: first name, last name, address, enrollment date, enroller name. I am trying to create a familyid that is...

View Article


Panel data: Replace missing values id it happend between dates

Hello, I have a panel data-set that I am in the process of cleaning. This data-set records violent incidents of patients in a mental health clinic. A patient can have different admissions and...

View Article


PPML Gravity estimation of bilateral trade help

Hi, This is my first time on the forum and I am quite new to Stata. I am an undergrad and intend to use the PPML estimator to test bilateral trade between the UK and other countries using panel data...

View Article

how to exculde missing value.

I need help with this code. how can I exclude the observations in X Y Z that contain "99999" from the calculations? foreach var in X Y Z { tab `var' A, col chi2 exact logistic A `var' logistic A i.race...

View Article

Weighting Eurobarometer dataset with STATA

Dear Statalist, I'm a beginner user of Stata and I am conducting a research about religious denominations among UE-28 using Eurobarometer data. In the Eurobarometer's documentation, there are only...

View Article


Help with mi import command

Hello! I'm having some trouble with the mi import command. I open the dataset with the imputed values from amelia and run the command (where imp are the imputed datasets, and idno is the case...

View Article

Panel Data Unbalanced - Xtreg - Two Way Fix Effect

Hello, Stata question – I need help with the following: I have a panel data with ~7,000 observation include ~15 years (1998-2013) and ~1,500 firms. Not balanced. In order to regress I have to take in...

View Article

Confidence Interval for binomial test in Stata

I don't know if this question makes sense but I'll give it a try.. In Group A, 15 out of 40 patents have a good outcome (outcome can be either good or bad). The comparison group's "good" rate is 0.243....

View Article


Help with percentile rank

Dear Statalists, I am running into a problem when generating percentile rank for each individual. Suppose I have sorted by group_id and income, my data set goes like: group_id inidividual_id income nb...

View Article


CMP Commands

I need to estimate a simultaneous model of health and wages. The health variable is an ordered discrete variable so I used to CMP IV ordered probit command as follows, cmp(lwagehr = X Y Z) (health=...

View Article

How to open/import database information containing a .dat file and a .des file?

First off, I apologize for having virtually no knowledge or experience with statistics or databases, which is why I've come here. At the moment, I don't know of a better solution than to simply seek...

View Article

Running Stata on a Linux server with multiple users

Hi. I am trying to figure out the licenses I would need for the following proposal. I am part of a project developing a new bespoke Java based system. I want to hand off the calculation of stats to...

View Article

How to display large integers in 2-way table?

I am using survey data with about 10million subjects, and when I tab two variables ("svy: tab x y, count col") the absolute numbers lose a degree of precision. For example, 1,560,500 will display as...

View Article


Gllamm dropped data question

Hello, I am running a multilevel model using a data set with 3,900 individuals distributed across 61 districts. However, when I run my 2-level gllamm model, it states that there are only 2,294 level-1...

View Article

Error reading .shp file using shp2dta command

I'm trying to create maps in Stata for the first time and have trouble reading the .shp file using Stata 13.1. After typing in the code below, Stata issues an r(3698) error message. Code: cd...

View Article


Confusion about interaction in GLM ((gamma) log (link))

Hello, I’m having a problem with contradictory results in GLM Output and post estimation Wald test concerning an interaction between a 4-level categorical and a dichotomous variable. I’m using Stata...

View Article

Question about stacked bar graphs for multiple variables

Hello. I have trouble generating a bar graph for the following: I have the variables A, B, C, D, E A, B, C, D, E can all only take a value from the set: (0, 1, 2, 3, 4) I would like to make a bar graph...

View Article


Panel data: working with a variable with just a t dimensions (but not i)

Hello Statalist users! I have been struggling when assembling my panel and I would like to check if anyone has any insights of what to do next. My panel consists on 27 states (i) on a 8 year (t)...

View Article

Bayesian Bivariate Ordered Probit Model Stata: using...

I'm trying to estimate a Bayesian Bivariate Ordered Probit Model using Stata's "llevaluator" feature for the first time in Stata/SE 14.1 . I am using Zurab Sajaia's bioprobit routine in the...

View Article

Stata integrations

I know someone has already put together something for Stata integration with Jupyter and recently saw a similar project pop-up for integrating SAS with Jupyter notebooks. Just wondering if there is any...

View Article
Browsing all 73281 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>