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

correlation in one wave data and panel data

hello, I have constructed a correlation matrix of a one wave data and a panel data set to examine the same thing. My one wave dataset consists of 158 observations, while my panel dataset consists of...

View Article


Help with spmap

Hello, I'm trying to visually present which zip codes Cuban immigrant offenders return to in Florida. In my dataset, I have a total of 182,509 ex-prisoners, along with the zip codes that they return...

View Article


standardized coefficients for sem

Hi, A quick question -- are there any postestimation commands analogous to Long and Freese's "listcoef" that can produce standardized coefficients after running a sem model? I am aware of the...

View Article

Merge two datasets wih the same variable names

Hi there, I have several datasets, each with the prediction error of different forecast models. I would like to merge the datasets in order to compare those errors and determine which predicts better....

View Article

Probit marginal effects

I estimated the following probit model: Code: probit enrolled i.male##c.wealth i.male##c.oppcost hhsize Following this, marginal effects are obtained as follows: Code: margins, dydx(*) Delta-method...

View Article


Problem encoding dates: unordered value

Hi all: I am gettings problems when I encode a date variable, to explain my problem I will use this example: Code: webuse wpi1, clear list in 1/10 +--------------------------+ | wpi t ln_wpi |...

View Article

Difference between vce(cluster) and vce(bootstrap)?

I'm using a fixed effects model. When dealing with heteroscedasticity and autocorrelation, I'm not sure which method to apply; vce(cluster) or vce(bootstrap)? What are the differences between the two?...

View Article

New version of -ranktest- available on SSC

With thanks to Kit Baum, a new version of ranktest by Kleibergen-Schaffer-Windmeijer, version 2.0.03, is now available on SSC Archives. Tests of rank have various practical applications; in...

View Article


How do you maintain your library of code sinppets?

This question is for anyone whose programmed for long enough to find that keeping snippets of code to hand is useful for remembering interesting or useful patterns, or to keep track of rare use cases,...

View Article


Generating summary statistics and exporting to excel

I have a table that looks like this: Country Name Country Code Series Name Series Code 2016 [YR2016] 2017 [YR2017] 2018 [YR2018] Afghanistan AFG GDP, PPP (constant 2017 international $)...

View Article

Image may be NSFW.
Clik here to view.

Can I select Fixed-effects model?

Dear, First of all, I really thank you everyone here sparing their efforts to help the person like me. - Fixed-effects model is proven valid by F-test. (The null hypothesis is rejected by the F-test) -...

View Article

Help needed to adjust the outcome of bysort command

Dear Stata community members, I have created a count variable k and p based on the following syntax : by ID Illness (Year), sort: gen k = _n by ID Illness Year (k), sort: replace k = k[1] by ID...

View Article

Calculating effect sizes after MI and mixed

Hello All, I hope this message finds you well! After running the following code is there a way to calculate effect sizes? Code: mi estimate : mixed dnT1_sum SR_Fall age_month edu mvpa_all light_sed...

View Article


Tabout Error - Conformability r(3200)

Hello I am using running a series of crosstab tables using the following tabout command: Code: tabout sex v501_marital_stat_r religion v106_education_r v190a_wealthquintiles v025_urbanrural ///...

View Article

Help/advice on importing large number of text files into Stata

Dear all, I have a collection of around 2,400 PDFs of parliamentary debate transcriptions that I would like to import into Stata. Having found no easy solution to directly importing PDFs into Stata, I...

View Article


Elasticity estimates in Tobit regression

Dear Statalisters This is my first post so please excuse if the question is not posed correctly. While running a tobit regression (with censoring at 0), my dependent variable captures spending on...

View Article

year dummies in xtreg and pooled OLS

Hello, I ran both a fixed effects model and pooled OLS model on the same dataset. I am now wondering if, including year dummies and thus time effects, is comparable in both regressions. In the...

View Article


Hurdle model with nehurdle command in Stata 12

I am using nehurdle command in Stata 12. My dependent variable is education expenditure (consisting of many zeros), hence I am using a two part regression. I am interested in elasticity estimates for...

View Article

hcost: error occurred while loading hcost.ado

Good day all, i need to run a hcost command to calculate cost estimate based on censored data [https://www.stata-journal.com/articl...article=st0399] attached is a part of the data: Code: * Example...

View Article

serial/cross sectional autocorrelation and heteroscedasticity in panel data

Hello everyone, I am working with a paneldataset with N=170 and T=5. I want to test for heteroscedasticity/autocorrelation but I kind of get lost in all the different functions. I know xttest2 tests...

View Article
Browsing all 65121 articles
Browse latest View live


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