Quantcast
Channel: Statalist
Browsing all 72758 articles
Browse latest View live
↧

system limit exceeded

Dear Stata users I have panel data of 1000 stocks. For each stock I have about 10 year of data. I am running the following code: forvalues year=2004/2015 { levelsof id if Year==`year', local(idlist)...

View Article


A question about a command

Greetings to everyone, I really need your help.. I have this question to answer (Did pre-crisis board size affect how firms performed during the crisis?) I have every variable (dependent, independent...

View Article


Testing for an inverted U-shaped relationship after xtnbreg

Dear Statalisters, I am trying to test for an inversed U-shaped patterns between R&D attainment discrepancy (which is the difference between the level of R&D exhibited by a focal organization i...

View Article

Synthetic control. How to deal with missing observations?

Hi Statalist users, I'm using the synth command (synthetic control) for a balanced panel data and facing the following situation. osin3 is my dep variable, osin3(1996(1)1998) and lgdp are the two...

View Article

Comparing coefficients across 2 models

Hi, I'm woking on Stata 13 S/E, and I'm having trouble comparing coefficients across two models. May someone give me a hand? Here's what I'm doing: 1) I run a regression without correction for...

View Article


Too many string literals error when defining static members of class

Wondering if anyone else has run into any other similar issues and/or if this is a limit that I'm unaware of: Code: // Start Mata session/interpreter/compiler mata: // Drops class from Mata if loaded...

View Article

Creating unique IDs

Hi everyone. I have some datasets that contain first names and birthdays. In order to anonymize the data I would like to create numeric IDs and remove the first names. The trick is that these IDs have...

View Article

Esttab, eststo

Dear Stata Users, My data are in panel form. I have 1000 stocks and 11 years (2004-2015) of observations for each stock. For some of the stocks observations exist not for all years. I am running a...

View Article


r(109) type mismatch - recode string values in numeric values

Hello everyone, I am trying to generate a dummy for campany size from a variable that includes the number of employees of the year 2012. Some companies did not state their numbers. The value of this...

View Article


7-Zip files

I'm attempting to download and use a dataset saved as a "7-Zip" file, which unzipfile cannot open. I've searched within Stata, but I've come up with nothing mentioning the file type. I've successfully...

View Article

deleting obs if var1=var2

Dear All I have the attached dataset and i have 2 questions: 1. I want to order STATA to drop all the observations for which the values of var "countryisocode_NUM" equal the values of var "guocountry"....

View Article

especial sort

Hello, My final dta file is of the following default format (sorted alphabetically by Metro Name). Metro Name Variable1 Variable2 Metro1 ..... .... Metro2 ..... .... Metro3 .... .... Metro4_Nation .......

View Article

How to estimate direct/indirect effects by bootstrap with -mi- in a program?

Hi, I am trying to run the following program to estimate direct and indirect effects using the approach proposed by Eric Tchetgen. Ref: Tchetgen Tchetgen EJ. Inverse odds ratio-weighted estimation for...

View Article


Creating a prior occurrence indicator

Using Stata version 13.1. I am relatively new to using Stata and have been approaching my problem with a particular strategy. I need either a way to make that strategy work, or a whole new approach to...

View Article

local in putexcel

Hi, I was thinking about using local in putexcel in a new way (for me). At the moment I know I can use a local in putexcel like: A`row' or A`++row' . Is it possible to move more than 1 line line...

View Article


First difference and interaction variables

Dear Members, I have a 3d panel data set. In this panel data set I am using the first differencing method and also have an interaction variable. I am not sure wheter i should first use the first...

View Article

count certain observations within a variable

Dear all, for a variable called classification we want to count the amount of times it has I, per year and per company (defined as the variable CUSIP8). This is our dataset: CUSIP8 Year classification...

View Article


Ordinal Multilevel Regression and Intra-class correlation

Hello, I am having some troubles with an ordinal multilevel regression. I have two levels and I would like to calculate the intra class correlation. After running my model, I used the estat icc...

View Article

Image may be NSFW.
Clik here to view.

pre-sample mean estimator.

Dear STATAlist users, i am trying to use the following estimator that is not built into stata and I would appreciate any help in programming it (if possible, I am totally newbie to it). More in detail,...

View Article

5 year survival for each site

Hello everyone, I have a dataset with hospital ID and survival data (vital status and duration of followup). I would like to create a new variable with median survival at 5 years for each hospital. How...

View Article
Browsing all 72758 articles
Browse latest View live


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