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

findname- display value which text in valulelabel is found.

Dear All, I have been using findname, which is truly excellent bit of code. However, i was attempting to search for text within a value label, and then hoping it would tell me what value of the value...

View Article


Number of Conflict years

Hello Everyone, I have a dataset that looks like this : ConflictId Location endyear startyear yrs 1-10 Philippines 1946 1946 0 It describes the conflict events that a country faces. For each...

View Article


Beginner statistics question about standard units

So I have an ordinal variable score that I'm treating as though it's interval. It's a scale of scores from 1 - 5 , with 3 being "average", 4 being "above average", and 5 being "most skilled". (Average...

View Article

oprobit postestimation.

T Hi, I have two questions regarding oprobit postestimation. Question 1: I am running an oprobit models with 3 potential outcomes of the dependent variable (1,2,3). The model is as follows: Model 1:...

View Article

Help with matching, please

Hi: I'm using pscore command in Stata 11. I have a database with 168 treated units and almost 7 thousand units to compare with. I would like to keep only the 3 or 4 closest comparison observations to...

View Article


transforming lines into columns

I have a dataset where each line informs the proportion of public beds em relation to all beds of a hospital (names below cnes) and bed specialization (named below tplei), (ex: delivery, chirurgical,...

View Article

using Collapse command

Hi. I'm a beginner and working with Census data. My variables are LOCATION SEX AGE YEAR1, YEAR2, etc..... YEAR20 and I have ages 1-90. My goal is to collapse the ages 80+ into one row but maintain all...

View Article

How to work with Alphanumeric codes in Stata

I have a data that looks like this NO. CODE 1 TU4E0620212748560 KEN Z0563653320130207102629PH0101207000ERRT0901205MEMB ER 2 TU4E0620213148294 Z0563653320130812115544PH0101207000ERRT0901205MEMB ER I...

View Article


Reference one set of variables based on another set of variables

Hi, The following data is a mini version of my dataset, it is a little difficult to explain what Im trying to do, apologies for the confusion in advance. Basically Im trying to replace the value 0 from...

View Article


Sum over with conditions

Dear Statalisters, Below is a small example of my panel data set. The data gives firm’s segment sales data. For example, firm 1001, in year 1999, it has 2 segments (presenting they are grocery, vs....

View Article

xtabond - dummies dropped

Dear Sirs: This is my first post on this media. I hope I making it right. My problem is probably simple, but after looking at the Stata manual and some earlier posts in this forum, I have not been able...

View Article

Panel Regression with missing data on FDI determinants

I am a new user of panel regression. I am trying to explore the determinants of FDI at a global scale. I have data of 124 countries for 19 years where some data for some countries on FDI itself for...

View Article

eocode3

Dear all, I am trying to install geocode3 to STATA 12 SE, but the following message appears. ssc install geocode3 ssc install: "geocode3" not found at SSC, type -findit geocode3- (To find all packages...

View Article


Reducing the range of the y-axis

Hello, I am using the following code to generate the attached graph. However because there are huge outliers the effect of the intervention (Synthetic Control Method) is not visible. : /*Placebo...

View Article

Creating automated filenames with string variables

Hey everyone I have a problem with creating automated filenames with string variables. This is what I accomplished so far. The problems is that I am unable to get the ticker value as filename (e.g....

View Article


Fixed Effect Regressions and 2-Dimensional Clustering

Hi everyone, I have unbalanced fund panel data (xtset at fund_id and month_id). I would like to regress my unbalanced panel on a list of controls including two categorial variables for investment...

View Article

How to define a time variable when values are not unique?

Dear Community, In reference to the following data-structure, I'm trying to define $quarter as my time-variable with the aim to produce some line graphs afterwards. Quarter Home Destination All_Appl...

View Article


Getting percentiles by month, with option if

Hello I am trying to get the percentiles from p10 to p90 by each month, each decile ranking in new variable. Percentiles should be calculated based on the all previous months up to this month: If sum,...

View Article

Can we call a Stata program in a Mata function??

Hi everyone, I am wondering whether we can call a Stata program in a Mata function. I need to do the quantile regression for 1000 times, meaning I need to use the qreg Stata command in a loop. I am...

View Article

Result different after normalisation of the dependent variable

Consider following two regressions: in case A, I didn't transform dependent variable and in case B, I normalize the dependent variable to lie between 0 and 1. I was expecting the same output, but I...

View Article
Browsing all 72769 articles
Browse latest View live


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