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

generating a new variable that indicates if the last event is a 1 or a 2

Hello List I have a data set with id, event_date, event_code(0 or 1) for every id there can be more than one event. So data look like: id event_date event_code 01 01/01/01 1 01 01/06/01 2 01 01/01/02 1...

View Article


How can I clean the date variable in my data?

Hi everyone, I am trying to clean a dataset with the following variables: HID visitno day mon year 1. 601 1 2 12 2012 2. 601 2 12 12 2012 3. 601 3 17 12 2012 4. 601 4 22 12 2012 5. 601 5 27 12 2012 6....

View Article


Interactions and Standard Errors in a Fixed-Effects model

Dear all, I am currently working on my master's thesis where I estimate a FE model which looks the following: y_it = a_0 + a_i + x_it*beta1+ crisis*(d_0 + d_i + x_it*beta2) + epsilon_it, where "crisis"...

View Article

Help in Stata

Hello All, I am new to Stata. I am having some issues which I would like to discuss with you all and get your valuable suggestions: I am having data in the format: Company_name Year Var1 Var2...

View Article

Renaming variables using extracted text from labels

Hello Statalist users! I am working to extract text from labels and rename a variable using the extracted text. The label also includes illegal characters for a variable name. I have found many helpful...

View Article


Comparing turning points

Dear Statalist, I have a Negative binomial model with panel data and I am interested in the interation of two variables lets say X1 and X2. X1 has a positive linear effect and X2 show an inverted U...

View Article

How can I clean the date variable in my data?

Hi everyone, I am trying to clean a dataset with the following variables: HID visitno day mon year 1. 601 1 2 12 2012 2. 601 2 12 12 2012 3. 601 3 17 12 2012 4. 601 4 22 12 2012 5. 601 5 27 12 2012 6....

View Article

What are remedies for a failed Ramsey RESET for ARDL models

Please help on the remedies for omitted variables bias in stata for ARDL models

View Article


Plot 1,2,...,N variables on the same graph

Hi, I have the following dataset: : RI_gp r0_3m_ACC r0_3m_NOA r0_3m_IVA r0_3m_AG r0_3m_CEI r0_3m_NSI r0_3m_O_SC r0_3m_GP r0_3m_ROA r0_3m_BM 1 .0121191 .0187712 .0147924 .0103527 .0041432 .0115713...

View Article


Plot raw data for several variables

Hi, I have the following dataset: : RI_gp r0_3m_ACC r3_6m_ACC r6_9m_ACC r9_12m_ACC r0_3m_NOA r3_6m_NOA r6_9m_NOA r9_12m_NOA r0_3m_IVA r3_6m_IVA r6_9m_IVA r9_12m_IVA 1 .0121191 .001827 -.0015662 .008526...

View Article

Can Stata substitute Excel for IF,AND, OR functions ?

For years I have been frustrated with the limitations of Excel. I need to perform 'IF, AND, OR' etc formulas down 200,000+ rows by 10 columns wide, all cells in that range contain formulas. Excel can...

View Article

Reshape dataset Wide to Long

Hi, I have the following dataset: : r_minus3_0m_O_SC r0_3m_O_SC r_minus3_0m_GP r0_3m_GP r_minus3_0m_ROA r0_3m_ROA r_minus3_0m_BM r0_3m_BM RI_gp .0173722 .021564 .0062099 .0059549 .0087727 .0044189...

View Article

Panel Data Analysis

Hello, I am having some difficulty to run my main multiple regression model. The dependent variable of my multiple regression model (main) is derived from another multiple regression model (First...

View Article


Writing a help file

Hi Statalisters, I am not sure whether I should post my question in the Mata forum. But I think Statalisters in this forum have a higher probability to have experience in writing a help file. Currently...

View Article

Meta-analysis using MICE data

Hi, I've imputed several covariates using 'multiple imputation using chained equations (MICE)' (STATA: ice) and would like to run a meta-analyses that has worked previously. However, for some reason,...

View Article


Changing decimal places in graph output in metan

Hi everyone, I'm a new user. I have searched for the above topic in the search box but I did not find anything relevant. Apologies if already covered. Looking forward to your advice. Thanks. Kareem

View Article

How can I determine the bias between a discrete and a continuous Survival...

Hello, I want to run a survival model with discrete time data (data are measured in years, mean survival time is 6.6 years and the proportion of ties is above 0.25), which lead me to the conclusion...

View Article


Panel data model analysis in stata

Hi all...I am new to Stata...I am having some questions which I am sure you people will be able to answer and help me out... I am having a small panel data set of 124 companies spanned over 6...

View Article

Filling upper triangle of a symmetric matrix

Hi, I have data on cross correlations among let's say 4 variables. It is structured like this: var1 var2 var3 var4 1 . . . 4 1 . . 3 4 1 . 3 5 7 1 I need to fill the upper triangle of my data with the...

View Article

Problems loading data

Hello, I have downloaded three files from a governmental website: a do-File, a dct-File and a txt-File. The instructions from their website states that I should open the .do file with Wordpad and...

View Article
Browsing all 72762 articles
Browse latest View live


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