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 ArticleMatrix 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 ArticleIVREG2 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 Articlemi 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 ArticleEstimating 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 Articleestout 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 ArticleTest 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 ArticleResearch 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 ArticleLinking 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 ArticleSplitting 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 ArticleMatching 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 ArticleClustering 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 ArticleCombination 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 ArticlePanel 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 Articleerror 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 ArticleMultivalued 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 ArticleProblem 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 ArticleWeighted 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 ArticleLog 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 ArticleIssues 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