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

How to use the putexcel command after tabstat

Dear all, does anyone know how to use the put excel on the tabstat command? this is how my tabstat table will look like and what should be exported to Excel. Code: . tabstat amp_rmssd mes_rmssd...

View Article


compute averages across firms by country

Dear all, I have a little problem with creating averages across countries suppose I have data in the following format Code: date name country ret 01.10.20001 company1 UK 0.01 .... 30.10.20001 company1...

View Article


Date Translation from type: double, format: %tcnn/dd/ccYY to %tdDMy

Hello, I want to calculate the age of firms at the time of survey whose registration date and the survey date are reported in different types and formats. The registration dates are reported as double...

View Article

Data 'not concave' with logit function

I have been analyzing some genetic data and recently ran into a problem trying to perform a multivariable analysis. I have a dichotomous outcome (disease or no disease) I've identified 4 separate genes...

View Article

Calculation problem in generating new variable

I did simple calculation to generate new variable (iddesa) from 4 variables ( kode_prov kode_kab kode_kec kode_desa). generate iddesa = kode_prov *100000000+ kode_kab *1000000+ kode_kec *1000+...

View Article


Marginal effects from each equation separately after churdle command

Dear forum members, I am going to estimate hurdle model by using official churdle command but i am facing some problems regarding computation of marginal effects. Here is my code:- Code: use...

View Article

est store is not working

Hi guys, I used est store to store model estimates before and it worked fine. I tried to use it today, however, it didn't work. The estimates cannot be stored at all. It shows that estimates cannot be...

View Article

Pairwise correlations

I have a set of variables named for countries Algeria to Zimbabwe ordered alphabetically. There are other variables Algeria_cor to Zimbabwe_cor interspersed: Algeria float %9.0g Algeria_cor double...

View Article


Treatment Effects Model with binary treatment and continuous outcome (Gamma...

Dear STATALIST: I'm trying to identify a Stata command to estimate a treatment effects model with a binary treatment and a continuous outcome of interest (healthcare costs). The latter needs to be...

View Article


causality test based on the error correction mode

Dear all, I am conducting ARDL estimatiors with EC form to estimate the long run relationship between financial development and economic growth. The regressors are stationary at either level or first...

View Article

Generate adjusted prevalence variable

I wonder could someone help me with a problem I'm having? I have a dataset of 10,000 people in 77 villages with disease outcome 1,0. I'm trying to generate a variable with gives me mean prevalence of...

View Article

_n with special conditions?

Hi everyone, I hope someone can help me out with this. I want to create a new variable (new_var) that counts the number of observations within each id. If dates are less than 14 days apart they should...

View Article

Survival Model with "treatments" at some point in time

Dear all, I was glad to see that Stata 14 offers panel survival models, I am however unsure whether this is exactly what I need. I know this is not Stata-specific, but if you could advise me on the...

View Article


Easy loop help

Hi everyone, thanks in advance for your help, as you will see I'm pretty new with Stata. I just want to perform a loop to get stock levels and anual growth from quarterly growth. I have forecasted...

View Article

Why the replace code could not work on my dataset

Dear all: Attached is my data-set. Array I want to replace abc =999.9 with . So, the right code should be : replace a=. if abc == 999.9. but this code could not work on my stata. the output is : ....

View Article


Cross-Sectional Regression OLS with Conley errors

Dear All, I am regressing a spatial cross-sectional data. I am thinking of using OLS regression, but as referring to some literature, they adjusted with Conley Standard Errors. I am wondering if anyone...

View Article

"replace" and "append" in foreach loop

Hi, I'm using esttab (http://repec.org/bocode/e/estout/index.html) with a foreach loop. If I put the esttab outside the loop I get completely horizontal output foreach type in TERM_ANY TERM_I TERM_V...

View Article


Choose optimal lag for granger test

Dear users, I am run granger test to examine the causality linkage between two variable. When I choose lag(1), the null of no granger causality is accepted. However, when I use lag 2, the null is...

View Article

Using Stata for reproducible, dynamic, publication-quality tables (MarkDoc)

Hello, I am hoping some fellow Statalisters could help me with this issue. The goal is to create a separate Word document (format required by most medical journals) for each Table in a manuscript...

View Article

IV with Endogenous Interaction and Fixed Effects

Hi Statalist, I have a question regarding estimating an Instrumental Variables regression for a large cross-section data set in which I have approximately 260 districts on which I would like to run...

View Article
Browsing all 72762 articles
Browse latest View live


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