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

How to get a similar result as "graph bar var1 var2,...

Hello everyone, I'm new here so this is my first question ever, hope someone can help. I created 2 Variabels "diff_Glo" and "posdiff_Poverty" from my variables "Glo" which measures Globalization level...

View Article


Creating an excel spreadsheet using putexcel and naming sheets using multiple...

Hi Statalist community, Below is a sample dataset that I made. Code: clear all set seed 1234 *Create a dataset of 1000 folks set obs 1000 *Create a id number gen id=_n *Create random number of groups...

View Article


Plotting residuls for first and second stage of "SLS

Dear Stata experts, i am using 2sls to estimate the impact of water quality on health with state 14. My explanatory variable is binary (safe water =0 , unsafe water= 1) and my Instrument is also...

View Article

Reghdfe presentign different results every time the code is ran?

Dear all, I am estimating the following model using the reghdfe command: reghdfe log(dowry) age age_marriage educ_years, absorb(religion wave urbanrural) cluster(district) Every time I run the code, a...

View Article

Lagged non-linear independent variables

I came across a paper that write the following: The first set of independent variables, REPRESSION(1)i,t-1, REPRESSION(2)i,t-1, REPRESSION(3)i,t-1, REPRESSION(4)i,t-1, are binary indicators measuring a...

View Article


Report pseudo r-squared with marginal effect (logit)

Hi, I am currently using the following code to export the marginal effects from my logit regression results to a word document: Code: logit y x margins, dydx (*) atmeans post outreg2 using output.doc,...

View Article

Large panel dataset and an unusual count outcome variable with zero-inflation

I would like to ask for your kind opinion on predicting a count outcome variable that is zero-inflated and whose standard deviation is significantly larger than its mean. I apologize in advance for the...

View Article

Categorical variable not found when exporting margins to LaTeX using esttab

Hi, I am running an ordered logit model. The outcome variable takes 5 values. When calculating the margins and exporting the results, I get an error that i.agegrp is not found. The codes that I have...

View Article


Two-step GMM

I am currently struggling with my thesis on the topic: The impact of liquidity risk and credit risk on the stability of commercial banks in Vietnam. My excel file includes data of 20 banks in Vietnam....

View Article


generating round variable

Hi! I am working on a data set that includes 10 rounds. It does not have a specific round/time info, but it has interview_r1, interview_r2, ...interview_r10 for those households interviewed in those...

View Article

Changing text effect for variable names in forest plot with metan

Hi, I am making a forest plot using the metan (SSC) package, and would like to know if this is possible to use bolded/colored font for the variable names (education, sex) to make them easily...

View Article

Present multiple variables of interest in a table using esttab/estout

Hi Statalists, I have a quick question about creating a table using ---esttab--- or ---estout--- to present multiple variables of interest in one table. I am working on a fixed effect model with...

View Article

Image may be NSFW.
Clik here to view.

Tables for descriptive and correlations

Dear Forum, I would like to create a table for descriptive statistics and a table for correlations. I have panel data and three dependent variables (emissions, tq and rdi), one independent variable...

View Article


Drawing a tsset graph with one time x variable and 4 y quantity variables

Hello Stata Community; I hope I could get some help with this, because I don't know where the problem with my data is. I do have this data: Code: * Example generated by -dataex-. To install: ssc...

View Article

Expand command for string variables

Hello everyone! I require assistance for expand command. My data consists of the following in respect of US states. state name, year, month of the year, product description code, and monthly tax rate....

View Article


statplot

Code: statplot Gender-Asa-ethnicity-social_depriv-provider-robotic, bar(1,bfcolor(green*0.4)) over(procedure_type) recast(bar) yla(0 0.25 "25" 0.5 "50" 0.75 "75", ang(h)) ytitle(Percent) Stata reports...

View Article

A question on regression estimates

Hi, I have a question on how to access regression coefficients on interaction variables in order to do a Wald test? I estimated the regression below: Code: reghdfe lntotexp ib1994.year##co.MWhousehold...

View Article


Problem with subcommands within a user written command

Hi This forum has been very useful, thanks to all the contributors. I'd be grateful for some advice: I'm attempting to use a command - stmfpt - written by Patrick Royston. This was recommended in the...

View Article

create quintile dummy variables problem

Let's say we have a dataset a: Code: use https://stats.idre.ucla.edu/stat/stata/examples/kirk/cr4, clear I want to create dummy variables for quintiles of a. My code is: Code: tabdisp order a, cellvar...

View Article

overlap violation | treatment-effects estimation for observational...

Hi gurus, I am running stteffects ipwra .., atet vce(cluster ... ) and received: Code: overlap violation; there are 12 observations with a probability weight less than 1.0e-05 r(498); unfortunately I...

View Article
Browsing all 73427 articles
Browse latest View live


Latest Images

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