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

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 Article


Missing 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 Article


Question 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 Article

Panel 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 Article

can't delete a post?

wish I could delete a post that seems rather silly now with more understanding.

View Article


Setting 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 Article

Group 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 Article

calculating 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 Article


IRA 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 Article


problem 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 Article

Simulteneously 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 Article

Store 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 Article

SIR Model

Hi everyone!! Is there any way to fit SIR Models in Stata?

View Article


How 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 Article

define 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 Article


Cleaning 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 Article

Sample 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 Article


Survey 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 Article

Roc 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 Article

tebalance 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
Browsing all 73277 articles
Browse latest View live


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