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

Help on creating descriptive tables

Dear members of the Statalist community, I am writing a paper where I look at several variables across industries which aim to explain stock returns. I would like to create neat and concise descriptive...

View Article


Repeated measures independent variable(s) with binary outcome

Hello Statalisters, This is my first message on this forum, so please bear with me :-). I'm trying to assess the impact of several pre-operative independent variables on the outcome of interest (death,...

View Article


Converting numeric to String

When I run the code forvalues i=1(1)20{ tostring `i', replace(s`i') format(%02.0f) } i got the error message: 1 invalid name What is wrong with the sintax?

View Article

Contradicting Stationarity results (ACF and Unit Root Tests)

I have done the Phillips-Perron Test and Augmented DF Test on my data and both point out that I have a stationary time series data. However, my ACF says otherwise. A symptom of non-stationarity is that...

View Article

Robust Regression or Robust Errors

Hi, I'm fairly new to stata and am trying to estimate the effect of drug crimes on house prices. I am using a fixed effects model but it suffers from heteroskedasticity and outliers. Therefore, I am...

View Article


cv_regress: Leave-one-out cross-validation statistics for OLS regressions

Hello every one, I wanted to let you know a new program has been posted for the estimation of the leave one out error, and estimation of CV statistics for linear models. In specific, it provides the...

View Article

MDS error: gradient of loss could not be computed or is missing r(498)

In September, I posted a question regarding using MDS with a dataset prepared for EFA and CA. Tenured Members Phil Bromiley and Oded Mcdossi helped me re-design my code, which made it work perfectly...

View Article

Estimation of Counterfactual Distribution of the outcome using counterfactual...

Hello everyone: I am working with survey data on wages and sociodemographic factors to evaluate the change in educational attainment on inequality measures on hourly wages and quantile estimates. For...

View Article


Similarity Index

Dear All, I have to create a similarity index among names of products belonging to a same firm. For each product I have a string indicating the name of the product. Of course by using "bys firm_name...

View Article


marginal effect when dependent variable is IHS transformed

I have a following model: yi=alpha+beta Xi+gamma Di+epsiloni where yi is transformed using inverse hyperbolic sine (asinh) because of negative and positive values in the raw data, X is continuous...

View Article

Business Day computation

Hello everyone! I am dealing with an event study for financial application and I am facing the following issue: For each of my events I would like to pull data for the 5 trading days prior and 5...

View Article

Evaluation / difference in difference graphs: plotting means and CIs of an...

Hi, I want to make a graph in STATA (15.1) that plots means and CIs of an outcome variable(y-axis) over years (x-axis) of a control and treatment group( may be separate graph for each group or one...

View Article

Heteroskedasticity - Interpretation after reg robust

Hi, I am currently working on my thesis and I have a question regarding heteroskedasticity. I researched quite a lot but i could find no answer. I believe this might be related to the fact that I am...

View Article


Create dummy

Hi, I would like to create a variable how long a person has been married: From: BURGST What is your marital status? 1 married or registered partnership, having community of property (including...

View Article

Viewing output with eventstudy2 package

Dear all, I have conducted an event study using the eventstudy2 package by Thomas Kaspereit. However, whilst I can see the significance signs on the test results, I cannot view the associated number...

View Article


Hansen test for System GMM using xtabond2

I issued the following command to do a system GMM: Code: xi: xtabond2 gdpgrowth lisxp linirgdpch lopen ki liberty lkg i.year, gmm(linirgdpch, collapse) ivstyle(lisxp lopen ki liberty lkg i.year)...

View Article

Looking up values in county level data file to combine with individual level...

I have a data set of about 500k incident cancer cases with characteristics of each case including the county of residence. I have a second data set with characteristics of the counties. How do I lookup...

View Article


WTP doublet module

if the first bid price is one fix number, instead of a set of prices, can I still use the doublet module? if not , can I simply put the actual number in the function instead of treating it as a...

View Article

I am getting the "factor variables and time series operators not...

Please help: When I run treatment effect analysis using the bmte command, I am getting the "factor variables and time series operators not allowed" error 101 message. Here is my syntax: bmte...

View Article

Sibling fixed effects

Ciao, I have data on siblings who were raised in foster care which I intend to use to investigate mental health. In some cases the siblings are raised together in foster care. In other cases the...

View Article
Browsing all 65675 articles
Browse latest View live


Latest Images

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