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

Problem replicating a seed

Hi all, I am having a problem that might be just a mistake on understading how set seet works in the new Stata 14. I needed to select randomly three evaluations and create an average score per project...

View Article


Matrix colnames and/or rownames from matrix or from value labels

Dear all, I have successfully generated a matrix after a tabulate command, but unsuccessfully set the right column and row names and would love a bit of help. I found online the following strategy to...

View Article


IVREG2 vs VAR?

Hi Folks, Any thoughts out there regarding using ivreg2 instead of var? It seems I have a fairly robust model when I use ivreg2 (with one lag of the dependent variable). Yet, the diagnostics for VAR...

View Article

mi impute, when the imputed variable is the depvar

Hi, I was wondering if I can use the mi estimation commands with a variable that has non-missing information. This variable with non-missing information has a list of plausible values and I want to use...

View Article

Estimating the GARCH(1,1) model on panel data.

Hello everyone, I am trying to run a GARCH regression on a panel dataset. I have an unbalanced panel dataset with gaps, consisting of securities and daily returns. I am trying to find out whether it is...

View Article


estout does not display estadd scalar (Pseudo-R2)

Dear statlist, I try to calculate a pseudo R2 for a mixed effect model and also display it in output (following this thread): Code: sysuse auto, clear eststo clear * Regular model eststo: mixed price...

View Article

Test for mediation using panel data (with some missing data).

I've tried this a few different ways now and each come up with an error message. Is there a command which can test for mediation when some years of the panel data are missing? More specifically: I have...

View Article

Research Setup: Count Model (ZINB) or totally different approach?

Hey there, I would be delighted to get your opnion on the following question: I am a little stuck at this moment (and I did not find a similar case in the forum) and am not sure if I am on track with...

View Article


Linking 2 variables

I am new to STATA. I am looking for help on linking 2 variables in the same dataset. The dataset is similar to a census data. (Specifically its UK's understanding society dataset) I have the below...

View Article


Image may be NSFW.
Clik here to view.

Splitting data in regression analysis

Hi, I am new to Satalist so I apologise for any errors in my post. I am currently running a regression model on unemployment (independent) and crime (dependent), using a panel-data approach of 50 U.S...

View Article

Matching based on firmsize (problems with calculating the ratio)

Hello, I posted this question earlier (http://www.statalist.org/forums/foru...g-sample/page3), but havent got a reply yet. I was hoping that more people would see my post if i would post it again...

View Article

Clustering using reghdfe- Full Rank Error

Hello. I am running a county-level fixed effects panel regression and I include state by year level fixed effects. Ideally, I'd like to cluster at the state level to account for some spatial...

View Article

Combination Cochrane-Orcutt with SURE

First, I would like to thank you all for this forum which has been really helpful. Now, I would like to ask my own question because I do not find any answer... For my master thesis, I've to regress...

View Article


Panel data first differences- only left hand side variable

Hi, I have panel data and using first differences with up to four lags the following way: (1) Code: areg l(0/4).d.(y x), absorb(year) cluster(country) This gives me 4 and 5 coefficient values for the y...

View Article

error message: no imputations to compute between-imputation variance

Hi. I'm attempting to run a mixed regression analysis using pweights with the Add Health data set. I used the recommended scaling techniques pwigls and mpml (user-written commands), but when I run it I...

View Article


Multivalued treatment effects

Dear all, I have quantitatively multivalued treatment variable. So i believe i cannot use the command "teffects ipwra" as it estimates treatment model by multinomial logit. I need to estimate the...

View Article

Problem with local marco or If-conditions?

Dear Statalist, I wish to generate variable "a" on basis of variable "a" (data generated within script) and "b" (cont.data) and scalar "c" and "d" time_id a b 1 . 1 2 . 0 3 . 2.8 4 . 0.325 5 . 0 6 . 0...

View Article


Weighted Averages by Category

Hey! So I am a newbie at stata programming and have a problem trying to find weighted averages by category. I have a panel data set (region and month) that is separated by US regions (mid-west,...

View Article

Log Likelihood

Dear all, Could somebody tell me how I can incorporate the log-likelihood in the output of my regressions since I did not find the right command for visualising the log-likelihood. I've used "estout...

View Article

Issues with AND/OR function with string variables

Hi all, I'm having a bit of difficulty getting the AND/OR commands to work. The problem that I have is that the coding is shared across all variables (it's a set of product codes), but I want to link...

View Article
Browsing all 73356 articles
Browse latest View live


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