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

Simulation OLS

Thank that worked too, i am also trying to do a simulation but i am not sure how to do the code. I have a linear equation y=c+0.05X1+1.28X2 so here i am trying to obtain the values of y and b2 when I...

View Article


Bug in xtreg, fe robust: wrong standard errors?

I am running a linear regression on a panel dataset, using fixed effects and robust standard errors in Stata 14.1. using the command "xtreg, fe robust". I am wondering whether there is a bug in the...

View Article


YouTube continuous by continuous

This StataCorp video needs updating. It shows a neat profiler plot, but states at the end that the pattern is indicative of an interaction. The model clearly did not have an interaction earlier in the...

View Article

Coefficients on covarites in doubly robust regression

Hello all, I'm running a doubly robust regression using propensity score matching (psmatch2 in the first stage and regression in the second stage weighting by the _weight variable created by psmatch2)....

View Article

Increase the cell width in output with 'tab' command

Dear Statalisters, Is there any way of increasing the cell width of the following output so that the results are not truncated ? Code: tab journal if id2==1, sort Name of Journal | Freq. Percent Cum....

View Article


Testing for Autocorrelation

Hi all, Is there a way to test for autocorrelation in state by predicting the residuals? I have panel data and am using fixed effects. Any help would be great. Thank you so much!

View Article

Writing scalar values form Stata into latex document

It is possible to include a scalar value from stata into a latex document?

View Article

estimating a pooled tobit without using the standard routine tobit.

I am trying to define a tobit model without using the standard tobit command. I know that i should use the ml routine (in combination with mata and moptimize command) but have problems with using the...

View Article


generate time lag for panel data

I have 50 stock markets and want to use the one-period lagged stock returns for each individual market, may I ask how I can do this with stata? Thx!

View Article


Using putexcel

Dear All, I've got a table in Stata output made up of approximately 700 rows. How can transfer this to excel so that I can have a file with the cell dimension A1:A700? I have explored help putexcel but...

View Article

Mean Statistics

Got all my data arranged in the following: crime data, year, state. So we have all the crime data by state in each year: i.e. Crime Data for Alabama in 2014 ... all the way to ... Crime Data in Wyoming...

View Article

problem with ttest

Dear, I performed t test as follows: ttest ([D_lnrgdp]: LD.lnpbcy) Then it return error like this: invalid syntax How can we solve this problem? Thanks

View Article

Sqreg

Dear all: I am estimating a model using the simultaneous quantile regression (sqreg command)... I am getting a meaningful output yet, no decimals are provided for the estimates in each quantile. I have...

View Article


Tobit model

I have been using the tobit command in Stata for my data but I wanted to make sure there wasn't a more appropriate model. I have household data about whether people in tropical villages choose to hunt...

View Article

Convert YYYY-MM-DD to YYYYMM

I want to create a yearmonth variable from my date variable (YYYY-MM-DD) i.e convert "2005-04-03" to "200504" The commands I am using keep throwing up missing values or mismatch errors. Anyone know how...

View Article


Multiple maps in spmap

How do you use the code for spmap to overlay two shapefiles on top of each other?

View Article

Testing nlcom for each value of a variable

Dear all My nonlinear model contains twice the same variable [var1] with two different coefficients. In order to estimate the true marginal effect, I calculate a derivation with respect to var1. The...

View Article


Fit statistics for logistic regressions using svy and subpop

I wanted to get fit statistics in order to compare models in logistic regression. However, I have not been able to find a Stata command that will work because I am using sample weights (svy) and a...

View Article

sample size for kappa (>2 categories)

I am familiar with 3 user-written programs for estimating sample size for kappa (kapssi, sskdlg and sskapp); however, these are each limited to two categories only; I have a situation with 4 categories...

View Article

Export impulse responses and forecast variance decomposition confidence...

I am running an svar and then running irf ctable with oirf and fevd options in a loop as follows: irf ctable (`cntry'_impulse ssr `cntry'_LT oirf, ci) (`cntry'_impulse `cntry'_ST `cntry'_LT oirf, ci)...

View Article
Browsing all 72769 articles
Browse latest View live


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