Quantcast
Channel: Statalist
Browsing all 73443 articles
Browse latest View live

myqreg vs qreg

I'm working with a code (from a published paper) and it defines the following program: Code: program drop myqreg program myqreg version 10.1 syntax [varlist] [if] [in] [, *] if replay() { _coef_table,...

View Article


General regression help

Hi, I am having some problems with the basics of regressions. I have panel data, similar to what is shown below, with two variables (so far). If the value of the variable on the left (SPS) changes from...

View Article


export the result of logistic in excel

Hi, I have 30 predictors and I would like to fit uni-variate logistic regression for each predictors. How I can run all of them in one code but as uni-variate logistic regression and exploring the...

View Article

Creating dummy based on variable value in subset year

Hi all, If I have data of 100 firms for 10 years with three variables; and I want to make a dummy variable equal to 1 for the firm if the value of variable x1 in year1 or year2 or year3 not equal to...

View Article

-xtreg- Ensuring correct model specification

Hello! My goal is to study the effect of new feature introduction by online platform on the ratings reported by platform users for a sample of companies. The newly introduced feature became available...

View Article


Help generating region variable

Dear all, I am using Stata 16, on mac. I want to create a region variable based on my dummy variables west, ne, midwest, and south, but I am not sure how to do so. south is my reference category. I...

View Article

generating a variable that computes conditional expectation

Hi, I have two variables of height and weight, I need the command that generates a third variable that gives the expected value of height for each value of weight.

View Article

Need Help!

Hey guys, currently working on a final project for my capstone course in college. I am studying the effects of the potential dam removal on water quality within a local river. I want to create the...

View Article


Calculating time-variant Herfindahl index (HHI)

Dear all, I am looking to calculate the Herfindahl index over the variable "industry" by group "ID" in a time-variant manner "date". Observations per ID are sorted in time-ascending order and the HHI...

View Article


Help!-Using Diff in Diff estimates with Twin Studies to control for heritability

Ok so I know nothing about econometrics or research methods but I have this project for my Humanomics class and I'm totally lost on the data analytics part. We are trying to write a research proposal...

View Article

Panel Data regression with time and firm fixed effects

Hi everyone, I am trying to run a panel data regression with time and firm fixed effects, but I am encountering some serious difficulties which i can't seem to solve (up until now). I hope you have the...

View Article

Create a Panel Dataset

Good Evening, I am trying to build a panel dataset from a list of Banks that I have downloaded from the Bankscope website. I have NPL Ratio observation from 2018 to 2000 I have imported my data from...

View Article

Help Interpreting a log-log scale scatter plot

Dear all, I am using Stata 16, on mac. I used the command twoway scatter lnGDP lnpopulation. GDP is in millions. I have included an image of my graph. Is there anything else to mention besides the...

View Article


cmxtmixlogit: real life data & applications?

Hi Statalist -cmxtmixlogit- was newly introduced in Stata 16 to enable choice modelling for panel data. After watching Joerg Luedicke's excellent webinar on the topic & having worked through the 8...

View Article

Copy database only with variable codes into Excel

I need to copy and paste database only with variable codes into Excel from STATA. How to do it? Please, explain me.

View Article


Longitudinal latent class analysis or latent transition analysis possible in...

Dear Statalist users, Colleagues and I want to analyse if and how parenthood ideals change over time. We have a (short) longitudinal survey with 8 items capturing parenthood ideals and two waves of...

View Article

Problem: margins command produces AME results with different p-values to the...

Dear Statalist, I am trying to obtain average marginal effects from a population-averaged negative binomial regression. I ran the following: Code: . xtgee cnrparticipants /// > sqrt_cnrdeaths ///...

View Article


Serial mediation analysis- gsem---error message r(3900)

Dear Statlist I am trying to condut the serial mediation analysis using a large stock market dataset with number of observations as 349,428. The number of stocks are around 800. I learned from the web...

View Article

Automatically Produced Timestamp in Results Window at Each Step

Sorry, this might be a basic question but when searching for an answer that includes "timestamp" I get all types of results that don't pertain to my question. In the early stages of a project, I find...

View Article

Changing month in date variable

Hi to all!, I have a question regarding my dataset. I digitized a historical book and I noticed that I made a mistake while coding months. I coded as DDMMYYY to be able to use it in Stata. However,...

View Article
Browsing all 73443 articles
Browse latest View live


Latest Images

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