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

New observation after splitting id

Consider the following data: Code: input long yesno str6 id 1 "1" 0 "2" 0 "3,4" 1 "5" 1 "6" 0 "7" 1 "8,9,10" end My ID variable "id" sometimes includes multiple unique IDs, which should have their own...

View Article


Rolling Impulse Response Functions

Hi, For my study, I need to calculate the forecast error variance decompositions of my variables which I estimate through rolling VAR. I can create rolling VAR, but I cant create rolling impulse...

View Article


Image may be NSFW.
Clik here to view.

Coefficents of different variables are mirror images of each other

Hi all, I'm having some(a lot..) trouble with the way my data is constructed(apparently) and I'm trying to "drill down" to find out what the issue is. A sample dataset that has the issue is attached....

View Article

Experience Variable

HI, I need to operationalise a variable counting the number of times a firm terminated a drug development project. But this count needs to be discounted by a constant (x). The formula that I need to...

View Article

Foreach inside cd " "

Does foreach not work inside cd " "? I tried the command below: Code: local uf AC AM RO RR PA AP TO MA PI CE RN PB PE AL SE BA ES MG RJ SP PR SC RS MS MT GO DF foreach x of local uf { cd...

View Article


duration of hospitalizations containing both overlapped and not overlapped...

I have a dataset with start (dt_ini) and end date (dt_fim) of different procedures per hospilalization (id_aih). I would like to know the duration of each hospitalization. The complexity lies in the...

View Article

generating case counts for level 2 units in hierachical dataset in wide format

I have hierarchical data consisting of 3 levels (cases nested in groups and groups nested in geographic spaces). The data are in wide format where each row is a level 1 case. There are about 2 million...

View Article

A problem when Stata functions returns missing instead of an error?

One of my coleques recently discovered the following. We discussed how to proceed and decided to give the community a fair warning of one of the more subtle elements in Stata. The reason for our...

View Article


factor variables may not contain non integer values

I know somebody has asked this question before, but I found the answers to be unhelpful. It seems that STATA automatically treat some data as factor variables. But I do not want those variables to be...

View Article


Help with standardizing the laten construct in a CFA/SEM model

Hi! I need desperate! I´m suppose to: fit a CFA model on a form of: latent construct affecting the observed variable. This is all straight forward and okay, but my problems lie in the fact that I need...

View Article

Adjusted Standardized Cross-Section Test (Adjusted BMP test) - Kolari and...

Dear all, concerning event studies in Stata (fairly simple, according to http://dss.princeton.edu/online_help...ventstudy.html) I was wondering if anybody has heard of/seen commands or codes relating...

View Article

Problem with -postfile- (writing out string material?)

One of my students has asked about how to collate a country-level summary statistic into a single file, given 122 countries. I am trying to illustrate how to do it this using a 3 country example, with...

View Article

Adjusted Standardized Cross-Sectional or BMP Test

Adjusted Standardized Cross-Sectional or BMP Test Dear all, I am currently working on an event study following the Princeton guidelines (http://dss.princeton.edu/online_help...ventstudy.html). To make...

View Article


Stata 14.1 crashes on opening do editor

I recently updated to Stata 14.1. Everything works fine until I try to open the do editor at which point I get the 'Stata has stopped working' dialog box and have to click 'Close program' and then...

View Article

Multilevel GLM with weights after MICE

Hello! Can anybody tell me if there is a possibility to run a multilevel glm with weights also after Multiple Imputatation (using MICE)? Thanks!!

View Article


Installing new commands or packages

Dear Statalists I tried to download new Stata commands but I received the following error message. Please if you have any suggestion to install new commands.I'm using Stata13 . ssc install winsor proxy...

View Article

New command - conindex - available from SSC

Dear Stata colleagues, Thanks to Kit Baum, conindex is now available from SSC. This command computes a range of rank-dependent inequality indices, including the Gini coefficient, the concentration...

View Article


Mixlogit with year dummies

Dear Statalist, I am trying to estimate a -mixlogit- model with two different subsamples of my data. One subsample includes single observations of individuals from many years. The second subsample is...

View Article

Merging dyadic and dyadic data sets

I am trying to merge 3 data sets from Add-Health: main data set, sibling data set and pairs data set. The main and sibling data sets are monatic and the paris data set is dyadic. The main and sibling...

View Article

Creating a Panel ID with cross-sectional data using matching criteria

Hello Statalist, I am facing the following issue: I would like to create a Panel ID based on certain criteria after appending cross-sectional datasets but I do not know how to do that. I am working...

View Article
Browsing all 72762 articles
Browse latest View live


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