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

To create variables if they do not exist in data

I have 100 data sets, they have a different number of variables. For example, some data sets have 33 variables (pre_tos1-pre_tos33), but others have a smaller number of variables than them (e.g., 29...

View Article


How to account for time specific effects?

Dear Statalist, I am looking at the effect of an environmental treaty on greenhouse gas emissions, using 140 countries across a 24 year period (1990-2013). Using a panel model (fe estimator), I run...

View Article


Converting string to numeric

Hey all, I have imported a csv file into Stata that contains a date variable formatted as a string variable in the form, DD/MM/YY. I want to convert this variable to numeric in order to apply date...

View Article

Trends analysis

Hello I am working on Nationwide Inpatient sample database. I want to see trends of DVT from 2003-2013. I was able to see but I have found interesting tables in another paper I want to run those tables...

View Article

Comparing ROC curve

I am using the -comproc function to compare two areas under the ROC curve estimated from two independent samples. I want to test whether the sample size has sufficient power to detect a difference. Can...

View Article


Replicate xttobit margins after gsem

Dear stateliest-ers, I am trying to replicate margins estimation after xttobit, based on the gsem routine. Here is what I have done. Code: . webuse nlswork3 (National Longitudinal Survey. Young Women...

View Article

want to import some of my data with loop and run coding

I have create a do file to progress my data. However,i have a problem. i have 12 datasets(2013_1~2015_4)(example:2013_1/2013_2/2013_3/2013_4) and want to import and deal with them using loop. But the...

View Article

Regression discontinuity discrete forcing (assignment) variable

Dear Stata Forum I'd like to carry out an RD analysis with a discrete forcing (assignment) variable. The key reference is Lee and Card, Jnl of Econometrics, 2008. Just wondering: Do any Stata routines...

View Article


Data Management Analysis with Data Graphics

Data Management is the great way to improve the performance of your archives through the effective way. it is the process that comprises with classical and the advanced functions of processing to meet...

View Article


Regression Analysis of News Data

Hi All. I conducting research on news data. In my research the dependent variable is stock price and independent variable is no of news stories on specific firm in a given day. Although the stock price...

View Article

Regrouping variables into components

Hi people, I would like to group some variables (5 possible values common to each variable: 1 to 5points) into components to make the analysis simpler. Indeed, the individual analysis of each variable...

View Article

What test can be used for heteroskedasticity and autocorrelation if it is a...

Hello everyone, I have used Hausman test and got the result that I should use RE instead of FE. And I have learned how to test heteroskedasticity for FE, by using xttest3. Though I don't know what test...

View Article

Comparing fixed effects coefficients between two groups

Dear all, I have estimated a fixed effect panel regression model for two groups in my data set. And I want to test if the coefficients are significantly different for both group. For example, I have:...

View Article


Regular expressions to pair and compare variables by name

I have a large dataset that contains information about pieces of equipment. I need to be able to aggregate up individual equipment characteristics to a group level. Variables are labeled in the...

View Article

Image may be NSFW.
Clik here to view.

How to count (yearly) inflow of values into a variable

Hello I have panel data and a variable (number of researchers) that increases every year. How can I make a variable that shows only the inflow of new researchers (to the variable: number of...

View Article


Stepping Through continuous and factor variables each to be excluded from a...

Hi all I have what seems like a simple two-part problem but have not been able to find a solution. Part 1: I have a set of variables that I would like to step through (in a loop) and with each...

View Article

ARIMAX model loop based on AIC/BIC

Hello everyone, I am currently writing my thesis and I need help with ARIMAX loop. An idea is to include three macroeconomic variables in a regression together with lagged LHS variable values and...

View Article


Differences in results between -metan- and -cc- for the Breslow-Day test

Dear Statalisters, I noticed major differences between -metan- and -cc- for the Breslow-Day test of homogeneity of odds ratio. Apparently, major differences appear when there are some cells from the...

View Article

rangestat missing values

I am trying to create mean value excluding current observation, however, rangestat generate missing values. What is incorrect in my command clear input float(mofd x1) -9312 .7068015 . -9311 .08698988 ....

View Article

Issue with lagged models

Dear Statalist community, I am executing a Diff-in-diff estimation. My data is on the municipal-level and comprises the years 1936-2011. Municipal-year-level observations; Municipality:= 1,..,1442;...

View Article
Browsing all 73256 articles
Browse latest View live


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