Dyadic data and clustered standard errors
Hello, I have time-series dyadic data and need to run a regression (DV and IVs are absolute differences) with standard errors clustered by a dyad. However, my data is somehow unstructured in a sense...
View ArticleMissing values in Latent class analysis with gsem in Stata 15 - different...
I am using Stata Version 15.0 "gsem" command to get a latent class model fromm a sample with 6860 (incomplete) participants. I have 11 manifest dichotomous variables. I repeated the same analysis with...
View ArticleQuestion related to loop/foreach vvv
Hi, Using the below sample data, I am trying to obtain the number of values in b1 (id=50_512) that exceed the maximum value of b1 when id=50_511. I would like to do same thing for b2. Given that I have...
View ArticlePanel data
I hope all is well and stay safe at home. I am a very beginner for STATA. I currently clean administrative firm-level data. I would like to create panel data for a certain period of years. Each firm...
View Articlecan't delete a post?
wish I could delete a post that seems rather silly now with more understanding.
View ArticleSetting up data for competing risk analysis
Hello, So I used a cox proportional regression model and I am pretty sure the assumptions have been violated mainly due to my Kaplan Meier curve showing a protective effect for the curve with the...
View ArticleGroup mean and separating data into 3 groups
Hi, I have a large set of data sets and multiple variables. I want to do the following: 1. First I want to divide my variables into three groups (pre, post and between) based on year. For example, If...
View Articlecalculating the growth rate of a phenomenon from its columns
I'm trying to calculate the transmission rate of the virus by country as new column variables. I want to subtract the first reported number of cases (in the total_cases column) from the latest number...
View ArticleIRA syntax
halo everyone, if I want to adjust the null distribution to perform rWG (interrater agreement). I have installed ira module and in the help menu, the syntax is: ira judge_id rating [if] [in] [,...
View Articleproblem with reshape, always show that "variable demacity-2001...
I have tried many times without success with "reshape long demacity- demanation, i(citycode_s ) j(year)" It always show that "variable demacity-2001 implied name too long",why many thanks for kindly...
View ArticleSimulteneously executing multiple do files
Suppose I have three do files with following commands in them File diX.do : di "X" File diY.do : di "Y" File diZ.do : di "Z" How do I execute them simultaneously in separate instances of Stata? I...
View ArticleStore Coefficient after loop regressions
Dear all, For our master paper, we need to replicate the Fama and French three factor model. We started with the one factor model to try the different regressions. We are struggling to do certain...
View ArticleHow do i open one of these .dat files?
https://data.nber.org/data/cps_basic.html for example March 2015 how would i open this in Stat? Thanks
View Articledefine constraints for baseoutcome in mlogit
I want to estimate a mlogit model Code: mlogit depvar ibn.fvar1 othervars there are categories in my factor variable fvar1 that do not occur for certain alternatives in depvar. if i Code: tab depvar...
View ArticleCleaning data of Globar Entrepreneurship Monitor
Dear All, I am currently dealing with cross-sectional studies derived from the Global Entrepreneurship Monitor (GEM) from 2004 to 2016. This study investigates the entrepreneurial activity across...
View ArticleSample selection for a panel: struggling with panel bootstrap in the program
Dear Statalisters, I am using Stata 15.1 and I would like to address the sample selection problem in a panel data set. The approach seems not complicated (as explained in the textbook of Wooldridge:...
View ArticleSurvey data
Good morning I need some advice for my master thesis please. My data is a cross-sectional survey. About 11000 households. I'm studying the effect of some disease on the investment in human capital of...
View ArticleRoc curve after beta regression
Hi everyone, I want to perform Roc analysis after beta regression and fractional regression. I have estimated predict value but it tells me that pr must be 0 or 1 for applying Roc curve. Any suggestion?
View Articletebalance summarize coefplot
Hi everyone, I am working (still in process on the matching model) on a project using teffects psmatch with a number of outcome and treatment variables. The number variables has prompted me to get...
View Article