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

Creating variable to record filesize of dataset

Is there anyway to have a variable record the filesize of a dataset? I'm trying to compare # of observations to filesize for several hundred spreadsheets (a daily dataset recording store purchases)...

View Article


Multivariate censored regression?

Hey guys, I hope somebody can point me in the right direction with this problem. I have a censored sample which I am analyzing by 1. using a probit for participation and 2. the truncated sample for the...

View Article


Conditional sum

Hi, I have a dataset that looks like this (also see attachment): ID area x_koord y_koord x_min x_max y_min y_max 100m_61570_4423 115 4423 61570 4422 4424 61569 61571 100m_61571_4423 291 4424 61571 4423...

View Article

Random effects model: Including country-dummies?

Hi everyone , currently I am investigating the effect of advertising bans on tobacco consumption for 29 countries and from 1990-2012. Thus, my dependent variable is "annual tobacco consumption per...

View Article

what test to check for different sample-means?

Hello forum, I'd like to check whether a change in a certain parameter increases the return (daily basis) of an investment strategy compared to its previous status. I am not sure what test I have to...

View Article


Generate an empty word document

I am using outreg in a foreach loop but I need to manually delete the previously created Word document each time I rerun the do file. If I wasn't using foreach, I could specify "replace" after the...

View Article

Variable Transformation for limited dependent variable models

I am trying to make a Tobit model and a Heckman Model, on willingness to give up time WTT (censored from Below with 0). So far I readed, both of the models have normality assumptions, but WTT as a...

View Article

labeling medians on boxplots

Hi, Say that you want to make several box plots using "graph box variable1, over(variable2)". Is there a way to label the median value of each box plot, next to the plot? Thank you.

View Article


graph scale for two lined graphed

Hello! Why when I do as below, stata ignores the yscale I restricted? : line ppc0 ppc1 anomes, yscale(range(0.5 0.9)) Also, I have a graph where my x-axis corresponds to year/month. I am trying to tell...

View Article


SVAR analysis

Hi Statalist users: I am trying to estimate SVAR using the following code and I need help with the interpretation. Could you please share a source of SVAR analysis which interprets each step? Any help...

View Article

Ceil function for decimals?

I want to store p-values in macros to display in graph captions and am having trouble with p-values that are nearly zero as the round(p-value, .001) function returns 0, which looks incorrect in the...

View Article

calculating marginal effect for panel logit

Dear all stata users, what should I do if I want to calculate the marginal effect of interactive term using panel data logit with random effect? I have tried to run inteff command. However it seems...

View Article

Instrumental variables with cohort interactions and clustering produces...

Dear all, I am trying to estimate the following model: Y = a_0 + a_1 X + a_2 C + a_3 (X*C) + e, where X is a continuous endogenous variable and C is a age cohort dummy variable. I have an instrument...

View Article


Exporting a summary table to latex

Folks, I wish to seek help in accomplishing this task. specifically i have two issues. 1. I need to know how i can export summary statistics from stata to latex, i have tried a number of suggestions...

View Article

How to show number of observations for each group is estout while using tabstat

Dear all, In the following output, I would like to show N for each group. Is it possible? sysuse auto, clear estpost tabstat price mpg rep78, by(foreign) /// statistics(mean sd n) columns(statistics)...

View Article


outreg error

Has anyone encountered this error with outreg? : . outreg using c:\tmp\regressions1.doc, merge MergeL(): 3499 selectindex() not found Merge(): - function returned error FrmtFill(): - function returned...

View Article

Log odds ratio - logistic regression

Dear all, I was confused by the two webpages showing logistic regression output on the Log odds ratio the first one is from UCLA stata site: http://www.ats.ucla.edu/stat/stata/o...a_logistic.htm it...

View Article


overlapping .gph files

Dear Statalisters, Is there a way of overlapping (not merely justapposing, as in "graph combine") existing .gph files? When using graph commands that allow to add plots, this is a trivial problem, for...

View Article

mcp by Patrick Royston and "macro length exceeded"

Hello, I am running a logit regression, and then attempting to create a graph of the marginal effect of one of the independent variables which is a continuous variable. I have around 1 million...

View Article

nested egen

Hi, I have database by a group (e.g. member of families) within each group there are certain groups based on a dates (e.g. loan start date). Family Member Loan_Start_Date 1 1 21-Dec-2011 1 2...

View Article
Browsing all 72756 articles
Browse latest View live


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