stset: Cannot wrap my head around how to explain death to Stata
Dear all, I am trying to stset my data, and I cannot quite figure out how to do what I want to do. My data concerns head coaches which work for sports teams. I have multiple observations of each coach...
View Articleimpossible calculation with %fc format
Hi Statalist I got a weird thing I'm not able to figure out. I'm currently working on money value and would like to use the %w.dfc format. I need to store several local macros to make a table showing...
View Articlelocal (macro) question
I have a local macro containing several terms, and I want each time I reference it to have it include more of the terms. I was unable to find how to do it elegantly. For example I have a local...
View Articlecorrelated, ar1, or psar1?
Hello, I am working on panel data in Stata 14.1. I have run the following tests: lrtest = p<0.000 indicating heteroscedasticity xtserial = p<0.000 indicating serial correlation Based on these...
View ArticleOrdered Probit: Interpret, test and compare coefficients
Dear colleagues, I estimate the following model: oprobit swb ib2.marital_status if syear==2005, vce(cluster pid) Coding: Dependent variable - swb: discrete values from 0 - 10. Predictor - marital...
View ArticleProbit with first differences: modeling and interpretation
Dear colleagues, Starting situation: - Balanced sample on individual level for two survey years. - Variable "Happiness" coded from 0 - 10. - Other variables: Age (continuous), marital_status...
View ArticleA Latent Variable Multilevel Model (Croon and Veldhoven 2007)
Hi Everyone! I want to use Croon and Veldhoven's (2007) latent variable multilevel model (Predicting Group-Level Outcome Variables from Variables Measured at the Individual Level: A Latent Variable...
View Article3SLS and instrumental variables
Hello everyone, before to start i would like to thank you all for this website. It is very well done and it is helping me a lot with my thesis. As is coming the deadline for it , i have some last...
View ArticleInterting Fixed Effects Model Question
^^should say interacting in title Hello, So I am trying to run a fixed effects model regression consisting of panal data from 3 different decades, using xi and xtreg commands. Data is in long form, and...
View ArticleReplacing missing values by existing values
I have a dataset that looks like the following: Code: * Example generated by -dataex-. To install: ssc install dataex clear input float(Individual Loan) 1 23 1 23 1 . 1 . 1 23 1 . 2 . 2 13 2 13 2 13 2...
View ArticleGranger Causality with panel data, using gcause
Hey, I am traying to test Granger causality with panel, I installed gcause in order to do so but if using normal: gcause var1 var2, lag (2) regress I keep getting error "option / required" The only way...
View Articlebootstrap SE for SEM latent growth mediation model
I have created an SEM latent growth mediation model using FIML (Stata 14). I need to get bootstrap standard errors (SE) and confidence intervals for various path in these models. As far as I can tell,...
View ArticleDrop duplicate observations by another variable
Hi There, as indicated in the title I have a data set like this: ID var 1 1001 k1 2 1001 k1 3 1001 k2 4 1001 k3 5 1002 k1 6 1002 k2 7 1002 k2 8 1002 k2 9 1003 k3 10 1003 k3 ... ... I hope to delete...
View ArticleUpdated version of -itsa- available on SSC
Thanks to Kit Baum, a revised version of itsa is now available on SSC. This new version allows users to specify additional "two_way" graphing options. Additionally, a bug was fixed that impacted how...
View ArticleI have a 2 id panel data set and I want to fill down/expand observations with...
Hello everyone, I encounter a problem and couldn’t find the solution from the past threads, so I decided to post a new thread seeking for advice. I have a panel data set regarding the holding...
View ArticleNardl
Hi everybody, Does anyone know how to decide what constraints to implement in a NARDL model. In general, can anybody tell how NARDL should be implemented on stata step by step with a plain English? I...
View ArticleGravity Model of Trade with Unbalanced Panel using fixed effects - help!
Hi, I am estimating a gravity model using an unbalanced country-pair panel data set, looking at European countries from 1948-2006, with about 48,000 observations. The dataset is the one used in Head et...
View ArticleInterpreting contradicting Dickey-Fuller results
I am getting some contradicting results for an ADF unit root test (attached), with two rejecting H0 and two not. How should I interpret these results? Is it also possible in Stata to get the actual...
View ArticleAppending dataset where value labels differ across variables
I am attempting to create a longitudinal dataset from multiple survey files. My problem is for some of the variables the value labels are not the same across files, and so if I append only the value...
View Articleduplicates
Array Array Hello My data has some duplicates. Below you can see the code and the output for duplicates. My questions is that I want to list the duplicates. How can I do that? thanks duplicates tag...
View Article