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

reading imputed data into Stata

I've used IVEware (a callable program into SAS) to impute my data because of problems I was having with getting the imputation to run in Stata. I'd like to transfer the data to Stata in order to run my...

View Article


Combining foreach + macros with Mahanalobis scores

Hi Statalist, I have a dataset of MLB players from the past decade, and have coded each of these player-ages with their current team (hence under var team DavidPrice_29 == "Toronto", Anthony Rizzo_26...

View Article


-xtivreg2 and two-way clustering

Hi, I am using -xtivreg2 from SSC in Stata/MP 12.1 for Windows (64-bit x86-64). -xtivreg2 version: 1.0.17 19Feb2015 Code: xtset id year xi: xtivreg2 depvar l.depvar x1 x2 i.region i.year , fe robust...

View Article

Survival analysis,control variables

Greetings, I am currently doing some research and was hoping for a bit of help and/or guidence. The variables in my dataset are as follows: Start (MM/YY) End (MM/YY) Duration (in months) Ringleader (1...

View Article

How to extract first and third letter of a variable name

I have a variable list named like H1S1, H1S2 , H1S3 and so on. The variables have numeric values. My question is related not to the variable values, rather it is related to the variable names. I want...

View Article


Question regarding arranging data appropriately for running psmatch2

Hello everyone So I'm fairly new to STATA but I have the hang of the basic command structure/simpler commands. At the moment though I need to do a propensity match analysis for a project and was...

View Article

Need Some Practical Advice on Estimating MELOGIT...

... I want to estimate an MELOGIT that involves nested random effects with frequency weights at each level. There are 196k observations. There are two nesting levels: 9 digit zip code and residences...

View Article

Legend in spmap

Dear All, I noticed than Stata uses the same color as the polygon contours to make the contour of the polygon symbol in the legend, when using spmap. Is there a way to change it? In the attached map,...

View Article


Future of STATA ?

I am using STATA from last six years and now I am worried as the other statistical tools are becoming very competitive because some of them are also free to use. So I Just like to have an idea what...

View Article


if all observations missing

Hi, I would like to replace my aggreated variable for . (missing) if ALL of its components are missing. This is how I generate my aggreated variable: gen total_fq=0 foreach v of var af408_* { replace...

View Article

repeated time values within panel

Hello, I have encountered a problem in my dataset when I merged 5 new variables into my main dataset. My dataset is consists of two time series variables, company id (ID) and years from 2009-2013...

View Article

Regression results

Hi, I have 1004 variables (1000 stocks and 4 factors), I'm trying to regress each stock on 4 factors. Is there a command that can save the regression results/tables for all 1000 regressions into one...

View Article

Solve a 4x4 dynamic system of equations

Hi I want to solve a 4x4 dynamic system of equations using nl but I get the following error: nlfaq3 returned 111 verify that nlfaq3 is a function evaluator program r(111); I thinks that the problem is...

View Article


Combine -graph twoway- with -drarea-

Dear all, I want to display a graph with two lines and their confidence intervals using Local polynomial smooth plots with CIs. I am using the following code: : graph twoway (lpolyci zscore age if educ...

View Article

comparing dates?

Hi, I have a dataset of 100 individuals, divided into two groups based on a dichotomous variable. Each individual started taking a medication at a certain date (from 1995 to 2015). Is there a way stata...

View Article


Median of Analyst forecast earnings

Hi there I am having problem calculating the median of analyst forecast by year. The data pattern is like this FirmID year forecastearning announceyr announcemonth 001 2005 0.12 2005 01 001 2005 0.11...

View Article

Underdispersion Test and STATA command for underdisperesed counted data

Dear all, I am doing analysis using longitudinal counted data. I have some questions regarding what analysis methods that I should use. Could you please answer the following questions? I am thinking to...

View Article


Multilevel mediation in gsem using interaction terms.

I am running a MLM with mediators using gsem. I've been able to use the SEM Builder to set up my models, but I have an interaction term for "X." The interaction is AgeXStress. However I am unsure how...

View Article

The meaning of Options: pa vce(robust)

Dear all STATA users, I am doing analysis using xtnbreg command, and I don't exactly understand some options that I can add for better outcomes. More specifically, I have different results when using...

View Article

Extract Monthly date from Quarterly date

I had posted a day ago to extract date from string. While Nick solved that, but it created another problem, i.e. monthly date cannot be extracted from quarterly date , see what I tried : clear input...

View Article
Browsing all 72758 articles
Browse latest View live


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