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

Creating a graph using coefplot

Hi all, I'm trying to use the user-written coefplot command from SSC to plot a graph. I'm running regressions to estimate the effect of unemployment on job security satisfaction by mental health and...

View Article


Discrete choice experiments: opt out option

Hi, I have a DCE with two alternatives and an opt out option. I have coded the opt out option to have all attributes equal 0. I have also created a varirable called 'Opt Out' where if it is an opt out...

View Article


Image may be NSFW.
Clik here to view.

Stata run command error with xsmle

Dear Statalists, I am working on spatial panel data analysis using a Stata command, xsmle, in Stata 18.3 /SE. However, I keep getting an error message that stops the running process. It is an error,...

View Article

How to use dirifit command to estimate Dirichlet Distribution followed by...

Hello, everyone; I have state-level panel data comprising 50 US states from 2005 to 2022. This dataset has three dependent variables: proportions of state financial support for student financial aid...

View Article

Probit Instrumental Variable with a Binary Endogenous variable and...

Dear Statalist, I have been reading a lot of time about how to deal with my problem, but I could not find a solution to my problem. I am trying to estimate the next equation for my sample of firms:...

View Article


LCA with distal outcome using rho and gamma from model without covariates

Hi everybody, I am doing a LCA with distal outcome. Here I would like to introduce a number of control variables. But I would like to use the distribution of the classes and item response probabilities...

View Article

How can I export result using xtdidregress to Excel?

Hi all, I have recently started using the new Stata command, xtdidregress, but I encountered some issues while exporting the results to an Excel file with significance stars. Normally, I rely on...

View Article

xtabond2 : error with ivstyle option

Hi all, While running a system GMM using xtabond2 , I came across the following error "invalid ivstyle". As I am quite new to xtabond2, I was hoping that someone could help me understand what's wrong...

View Article


Covariates not included in margins

Hello all, I'm trying to run a linear probability model with fixed effects, but I'm encountering some issues when I then try to view the predicted probabilities using 'margins'. As I understand it,...

View Article


Forest Plot

Hi, I am new to STATA. I want to generate a forest plot for the prevalence of self-harm but without meta-analysis (no pooled estimate). Currently, I can generate the forest plot, but only with a pooled...

View Article

Forecasting a production value based on its history

Hello Stata users, I have this little data at hand: Code: * Example generated by -dataex-. To install: ssc install dataex clear input int Année long Collecte_Orge_Tendrequintal 2018 894769 2019...

View Article

Single line chart with a grouping variable

How can I plot the following series in one plot, without specifying the grouping variable (i.e., province) one by one? Province year n A 2010 1 A 2011 2 A 2012 3 B 2010 4 B 2011 5 B 2012 6 Code: graph...

View Article

Insufficient Observations Error

I keep encountering the insufficient obs error using xtreg even after eliminating duplicates and blanks as suggested in prior posts. I assume it is a newbie mistake. This is the simple code I am using...

View Article


Panel Fixed effect estimation

Hello. I am working on the effect of health shock on household consumption. I have 3 periods of panel data; 2012, 2015, 2018. The health shock data available in each year is the information based on a...

View Article

Image may be NSFW.
Clik here to view.

x2abond GMM estimation, choosing instruments

Hey I am writing my thesis currently about the effects of bilateral aid, trade and fdi on bilateral migration. My dependent variables are migration stock % of origin population and migration stock % of...

View Article


Mixed model repeated measures using f_able/f_rcspline

Hi! Maybe a question for FernandoRios Following up on https://www.statalist.org/forums/for...es-mixed-model New question: I would like to try to model the relationship with splines instead of a...

View Article

My code keep on changing the value of a variable

Dear Statalist members, Kindly help me understand why every time I tab wbc,m and rbc,m the value of missing keep on changing on each of the variables. I think for you to understand the problem you real...

View Article


Questions about Panel Data - I am a bit confused

Hello everyone, so I am doing a panel data on fundraising determinants in private equity. It consists of 5 countries over the period (2010-2022). These are the steps I have in mind according to my...

View Article

Unstable st_view connections

My query does not focus on a specific Mata problem but an issue of program design. I am writing a set of programs in Stata which rely heavily on calling Mata routines for executing the main...

View Article

Robust standard errors in dtable

When using the by category and test options with the d-table it will conduct a linear regression/two-way t-test and report the p-value. (If there is more than one group, it reports the f-test.) Is...

View Article
Browsing all 73446 articles
Browse latest View live


Latest Images

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