Merging variables into one variable after rehaping
Hi everyone, this is my first post to Statalist so I kindly request some patience as well as welcome feedback regarding my post format. I had a long database that I have reshaped to wide. This is my...
View ArticleSyntax for a mixed-effect repeated measures model
Dear Statalisters, I am trying to implement a mixed-effet repeated measures model that was described by Hamlett, Ryan, Serrano-Trespalacios & Wolfinger in their paper entitled "" (Journal of Air...
View ArticleDefining Pseudo Panel
Hi All, I am currently using the world bank enterprise survey data for my PhD research. This is firm-level data and it consists of repeated cross-sections for 2006 and 2014 for one country. Is there a...
View ArticleOutreg2: export table with marginal effect, standard error and p-value
I would like to use outreg2 to export result of logistic regression as a .xls file with marginal effect, standard error and p-value using my own dataset. My code did work to export the xls file, but...
View ArticleBayesian analysis: how to mirror a chi-squared test under the...
Dear Forum Members, I believe Stata 15 provided a rather handy panoply of commands to perform Bayesian analysis under the - bayes: - prefix. With regards to inferential models, it became much easier to...
View ArticleEvent History Analysis
Good Evening, I have a question related to Event History Analysis. I am trying to run this model for the first time therefore I shall be extremely grateful for any help regarding this. Here is a bit of...
View Articlemerging two data sets
hello, my project involves merging two very large data sets . I used an id number to merge the two data sets and got 95% to match using the code : merge m:m id using data1.dta . i was told to use an...
View Articlep-value for comparison of adjusted curves from Rocreg
Hello, I am trying to compare two curves generated using rocreg - one curve that is not adjusted and a second curve that is adjusted for a continuous covariate (image quality score). I am able to get...
View ArticleClarification of Results Interpretation
I am conducting a cross-sectional study of UK firms to investigate the relationship between boardroom diversity (alternately using dummy variable 'presence' and proportion 'div_prop') and firm...
View ArticleIs there no way to include "industry fixed effects" in an...
Dear Stata community, I am running a model of the following form: xtset CompanyID Year, yearly xtreg firm_profitability firm_investment_strategy firm_size, fe vce(robust) I would now like to add...
View ArticleDrop base variables from fvexpand list
I want to modify the variable list produced by fvexpand, e.g. Code: . webuse nhanes2f, clear . fvexpand i.sex i.race . return list macros: r(fvops) : "true" r(varlist) : "1b.sex 2.sex 1b.race 2.race...
View ArticleGravity model, low R2-within
Hi all ! I'm running a bilateral trade panel data of 42 reporter with 186 partner for the year 2015 and 2017. I do have a lot of missing datas in my dataset. I am trying to assess the impact of trade...
View ArticleMeta-regression with WLS: Wrong sign due to weighting
Dear Statalist, I'm asking for advice to solve a problem with my meta-regression model based on a WLS regression: I'm using a dataset of 538 observations from 80 hedonic pricing studies that all report...
View ArticleUsing Wald Test for Complex Interaction Models
Dear all: My name is Siyu. I am running a random-effects logit model involving many interaction terms. The model syntax is as follows: xtlogit author c.ideodist##c.constraint_sd##i.statCase...
View Articlerename all words of local
Dear all, I have trouble finding my way through all possible local manipulations to find what I need. I was wondering how I can rename all variable names stored in a local. Illustration: Code: local i...
View ArticlePanel Data Missing Observations! Solution
Dear Statalisters, I am currently running analysis on a 2-period panel data set from China. I use a Fixed Effects model for some regressands, an ordered logit model for others. I do have non-responses...
View ArticleDyadic Ties. Looping if a pair in the same group is also a pair in another...
I am using Stata 15.0 I am trying to construct the variable Prior Tie Density (the number of formed ties between VCs in a group / total number of ties they could have formed). For me, this is fairly...
View ArticleHelp with time-invariant variable in panel data
Good morning, I am new here and would greatly appreciate some help. I would like to run a regression in order to see the effect of several variables (GDP, urbanisation rate...) on the production of...
View ArticleInterpreting coefficients with two interaction terms
Hello, I have a general question about how to interpret regression coefficients, when you have more than one interaction term. I am aware that with one interaction term (between the independent...
View Articlextpcse with ols coefficients and ar(1) standard errors
Dear users, I have a panel with n=40 states and t=30 years which I would like to estimate with the xtpcse command (Linear regression with panel-corrected standard errors). My questions is whether there...
View Article