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

Standardize command in Stata?

Hi, I was wondering if anyone is aware of a command to standardize variables in Stata. Please let me know. Thanks!

View Article


Appropriate level for Instrumental Variable in 2SLS

Dear all, I am asking a novice question regarding the appropriate level of IV when you have individual level data. Specifically, I am thinking of using a group-level instrument (i.e. trade volume) to...

View Article


Estimate mean

Dear all, I have a panel-dataset from 2000-2010 with round about 100 firms. Each firm has an Identifier (ID). I want to measure the average SD for a variable (Profit) within industries. Each industry...

View Article

Switching cohorts

Hi there I have prospective cohort data. Individuals spend time in an exposed or unexposed cohort and contribute person-time to each accordingly. The thing is, some individuals start out in the...

View Article

Estimate mean in panel data, how many clusters

Dear all, I have a panel-dataset from 2000-2010 with round about 10000 firms. Each firm has an Identifier (ID). I want to measure the average SD for a variable (Profit) within industries. Each industry...

View Article


in long data, replace var1==_n with other variable by id

Dear Listers I would like to replace a variable by the first occurrence of another variable. Code: input id first second 1 50.1 50 1 50.1 51 1 50.1 52 2 60.3 60 2 60.3 61 2 60.3 62 end i want...

View Article

Using a macro name in a directory

I am trying do a loop where I put graphs in different directories on my computer. Code: foreach name in "Bedtextiel" "Gebak" "Kantoorart" { cd...

View Article

Standard Deviation of 8 numbers in a column

Greetings to everybody once more, does someone knows how to calculate the standard deviation of 8 numbers in a column which go like this prc 25.86499977 26.01000023 26.59000015 26.93000031 27.03000069...

View Article


Statistical procedure to identify components of an aggregated variable

Hi guys, my (business) research focuses on the difference between two measures that are both related to a firm’s statement of profit or loss; let’s call these measures Earnings_1 and Earnings_2 and the...

View Article


Cross-references between different variables

Dear Stata ist members, I am quite a new STATA user, so maybe I simply do not know the right keywords to search for solutions to this question. In that case please forgive me if I am posting a very...

View Article

Cross-references between different variables

Dear Stata ist members, I am quite a new STATA user, so maybe I simply do not know the right keywords to search for solutions to this question. In that case please forgive me if I am posting a very...

View Article

Problem: Identifying Cells that Actually Contain Data in My Stata File

Hi there, I am encountering a problem with some data I am working on in Stata. Here's the story. I have a column (a string variable) that has many, many cells that contain absolutely no characters. I...

View Article

Merging 2 Datasets

Hello all, I need some help! It's my first time using stata and I have 2 datasets 1) School Building Data ​Variables: district, number of schools built, number of student enrolled 2) Student Outcome...

View Article


diagnostic test and stability test after ARDL estimation

Hello users, I estimated the following equation by using the ARDL: ln(y) = b1 * ln(x1) + b2 * ln(x2) + b3 * ln(x3) + b4 *ln(x4) + e I am currently confused about how to perform diagnostic test and...

View Article

capture ssc install

In Stata 12, using the command "ssc install [package]" would generate an error if the package was already installed. However, I'm noticing that in Stata 13 and Stata 14, this no longer appears to be...

View Article


Add F-test to Newey-West

Hi, I am trying to add a F-test (irx spx for instance) to the spreadsheet that I am creating below: Code: use http://www.stata-press.com/data/r13/ibm, clear tsset t quietly reg ibm irx spx //Run...

View Article

Recursive VAR Impulse Response Function

Hi, I would like to run a recursive VAR Impulse Response Function. How do you specify the fact that the errors are uncorrelated (recursive VAR). Is it with the option "oirf"? Is the following code...

View Article


HP filter using tsfilter hp on unbalanced panel data

Hi, I have a panel data of many firms (panel variable = id) and many years (time variable = fyear). Originally I have gaps in the time variable but before doing any time series action, I correct for...

View Article

Using predict after mlogit

Hi - I've been reading this forum for years, but this is my first time posting, so forgive me in advance if I screw up the protocol. I have a question about the way predict works after mlogit. (I am...

View Article

Interpolating quarterly GDP into monthly?

Dear all, I'm trying to interpolate a quarterly GDP series into monthly. I looked at the help file for "denton" but am unclear what the indicator variable should entail. Suppose I just want the GDP of...

View Article
Browsing all 72764 articles
Browse latest View live


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