non-linear optimisation with linear restrictions
Dear all: I need to find the B vector that minimises the following non-linear function (B-A)*IM*(B-A) such that a linear restriction (also involving the vector B) is fulfilled. It is not necessary to...
View ArticleData which contain Multiple followups with hours variables
Dear Statlist Users, Hope all you experts are doing great.I wanted to understand how to analyze the data which contains multiple followups, for example data contain 47 followups depend on different...
View ArticleProblem with Reshape on Panel Data
Hi all, My aim is to make variable id to be unique and I think reshape is the command instead of collapse. When I was tried with reshape from long to wide, error appear in output: Some error are: code...
View Articlehelp with local macros
Dear all, I would like to create several boxplots at once and combine them. i found the code below and it works very well. can some one help me understand the different sections. i understand the...
View ArticleNumber of rows and columns of subplots using xtline
Hi, how can I define the number of rows/columns of subplots when using "xtline"? The options "rows()" and "cols()" do not work: input: "xtline var1, rows(2)" output: "option rows() not allowed" Same...
View ArticleRamsey test
Hi, Which is the command in Stata 12 for the Ramsey Test with data panel? Thanks!
View Articleonly the estimated coefficient
Hi, Which could be the reason that Stata shows me only the estimated coefficient?: ------------------------------------------------------------------------------ | Robust ln_TRADE | Coef. Std. Err. t...
View ArticleStata : Rr mantel heanzel
I have SMR results by lauching this command : strate maxexpo_ardbis, per(100000) smr(taux_esto) and i want to have the RR of mantel Haenzel, rr which measures the tendency of increase or decrease of...
View ArticleVariance of each single residual
Hi Statlist, I am struggling into constructing the residuals' specific variance for the following model: Code: xtreg tasso_crescita_sales_prod L.log_sales L.dummy_2 L2.dummy_2 L3.dummy_2...
View ArticleUnobserved Componenet Model and State Space Model
Dear All I am try trying to construct an index, using Unobserved Component Model (UCM) and State Space Model (SSM) in Stata, but I am really struggling with the right syntax/command. I have already...
View ArticleHow to extract a country specific value for each country in a panel data set
I have a panel date set wich consists of 49 countries and want to extract fed funds rate for each country. The variable interestrate have interest rate of each country and want to extract the values of...
View ArticleHow to save graphs from loop in particular folder
How to save graphs from loop in a particular folder. I have my out foder: global MY_OUT "C:\Users\out" and the loop as below: foreach y of varlist reer cpi gdpgr { local graphtitle : var lab `y' twoway...
View Articlecovariance structure in mixed model
Dear all, I've been having problems selecting the correct covariance structure and for my mixed model (employees nested within firms). When adding a (categorical) random slope (regarding the size of...
View ArticleNot concave issue with multinomiallogit regression
Dear Satalis, I hope you are well. I would like to ask please regarding the problem of 'not concave' iteration. I have a dataset for 300 firms, one of the firms appears to be an outlier. When I...
View ArticlePPML for one country
Hi, If I estimate a gravity model using PPML from a balanced data panel for a several number of countries, but I would like to focus only in one specific country AAA is it the following correct? : egen...
View ArticleGeneral xtabond2 queries
Dear Statalist, I am examining quarterly data for an unbalanced panel of 11,000+ banks from 1996:Q1 to 2016:Q4 using Stata/IC. I am using a system gmm model through xtabond2. My regression code is as...
View ArticleDyadic panel data: how to identify id overlaps between dyads over time?...
Dear Stata experts, I have posted the question a couple of weeks back but didn't receive any feedback. I hope this is not a violation of the forum's rules if I re-post, witith a hopefully more...
View Articlextabond2 lag sub-option
Dear Statalist, I am examining quarterly data for an unbalanced panel of 11,000+ banks from 1996:Q1 to 2016:Q4 using Stata/IC. I am using a system gmm model through xtabond2. My regression code is as...
View ArticleFinding Pairs within a column
Dear Statalists, my dataset is about directors and which companies they work for and looks like this: Company_ID Director_ID Term Begin Term End new_app 40416 1 1977 1999 0 15456 1 1983 2013 0 76085 1...
View Articlepredicting linear change when dependent variable is log transformed
Im working with a surgical dataset and trying to predict whether a particular technique (doing the operation under local anesthesia rather than general anesthesia) is faster in terms of the total...
View Article