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

Hausman test issues

Dear all, As I've been running a couple of panel regressions, a problem often stated on statalist occurred, the Hausman test mentioned the rank of the differenced variance matrix (6) does not equal the...

View Article


Combining datasets by multiple variables and a condition

Dear all, For my research into earnings announcement dates (EADs) I need to combine the following two datasets: Option prices Company ID Date Option price Company 1 date1 price1 Company 1 date2 price2...

View Article


Calculate discrete failure percent per time interval?

Hi, Does anyone know a way to make Stata calculate a discrete failure percentage for each interval (ie t, t+1) complete with upper / lower bounds / standard error in a survival analysis? I suppose I...

View Article

poststratification for non-response and estimation of totals

Dear STATALIST users, from a population of 7396 units I randomly selected half, i.e., 3698 units, for an opinion survey. This means my base weights equal 2. From that sample of 3698 units, 1255...

View Article

How to calculate the median for a group but exclude firms in the same...

Dear all, I have a question that bothered me for a while. I would like to calculate the median leverage in a group that exclude non-acquirer and firms in the same industry with acquirer. A simplified...

View Article


Difference in differences with one regression totally insignificant

Hello everybody, as the name of the thread suggests, Im currently trying to do a diff-in-diff analysis for my treatment group (some EU countries). The event is the European debt crisis starting in 2009...

View Article

Gllapred for specific values of the covariates

Dear all, I am trying to obtain predictions after gllamm at specific values of the covariates. I am estimating a logit model with random effects (at the region and country level) and weights. I want to...

View Article

adjustrcspline using imputed dataset?

Is it possible to use adjustrcspline for data that has been multiply imputed? Does anybody have a good resource? Code: mi estimate, dots: regress sumscore rcs_size_* bmi aua volume age i.stitch i.nerve...

View Article


for each observation, find the first change in variables that tracking by years

I am conducting a study to track people's health condition changes. Data will be look like the one below. My goal is to find the first year that the condition changed. For example, for person 1, first...

View Article


Finding patterns from listwise deletion

Hello everyone, I recently ran a few regressions from General Social Survey data and Stata automatically did some listwise deletion in my analyses. This was fine, but some analyses had far fewer...

View Article

Stata programming issue

Dear Stata user, When I run the following program (PROGRAM A) it worked fine. But when run the same program within (See PROGRAM B) cap prog drop WASH prog def WASH ....PROGRAM A it gives me the...

View Article

Long Data: Reshape wide with 2 levels

I googled how to do this but I couldn’t find a solution. Basically, I have data in a long format with different levels. My data represents students with miss a series of misconducts for two periods:...

View Article

Comparing results of mixed-effects logistic regression with crossed random...

I have created a mixed-effects logistic model with crossed random effects for my data in both Stata and R (using lme4). The two models, presented below, have yielded very similar estimates for the...

View Article


Tobit returning negative coefficients

Hello, I have a panel data from an RCT with two observations per per subject (i.e. each subject has two rows in my data file). Subjects were asked to donate some money via two ways, let's call these...

View Article

help with putexcel and creating a loop with foreach

Hi, I have a health dataset which contains information for some 350 clinics. I would like to export basic descriptive data for each clinic to excel. How do I use putexcel and foreach to generate a loop...

View Article


Difference-in-difference estimation: multiple pre/post-periods, lags,...

Dear Statalist community, I want to execute a Diff-in-diff estimation. My data is on the state-level and comprises the years 2005-2013. State-year-level observations; state:= 1,..,16; year:=...

View Article

Stata Conference 2017 Call for Presentations

Dear Stata Community, I am pleased to announce that presentation abstracts are now being accepted for Stata Conference 2017, to be held in Baltimore, Maryland, on July 27-28, 2017. Go to...

View Article


addressing left censoring in survival analysis with enter() option?

Dear all, I work on a single record per id, single spell survival dataset with late entry and try to do everything I need in this framework with the built in Stata commands. This means the standard...

View Article

Heckman probit error

Hello. When the following formula is run then error messages appears: . gen capphi=norm(p1) . gen invmills=phi/capphi How can one fix this? Stata didn’t seem to recognize the nnorm function. Need this...

View Article

Supercolumn position in table command

Dear All, I need a table with layout same as shown below, but supercolumn totals placed first (before "cheap") in the order of supercolumns. Just in case, I am looking for a solution which would...

View Article
Browsing all 65619 articles
Browse latest View live


Latest Images