Merging two rows
Hi, I've dataset like this: Code: * Example generated by -dataex-. To install: ssc install dataex clear input float(id credit time) 12 1100 1101 12 1200 1102 13 1800 1303 13 475 1304 13 980 1305 13 600...
View ArticleBivariat probit model using panel data
Dear, I hope you are fine, maybe somebody know the command of a Bivariate using panel data structure please. Best regards
View ArticleCoding for one relationship (Add Health WIV). Dropping people with the...
I am using Wave IV of Add Health (the relationship sections are 16b and 16c), and I am trying to get one partner among all of the relationships reported. The data is in the long format, and I am trying...
View ArticleAttention: Frank Lobue
By my count Frank Lobue -- which may be the name of a collective as one Anthony Santana sent me a related question directly -- is operating in six threads with variants of the same question. Here they...
View Articlepsmath2 and rbounds: estimating 'interaction effect' using Propensity Score...
Hello, I'm using Propensity Score Matching method to estimate a treatment effect (psmatch2 used). On top of that, I want to assess the robustness in the treatment effect to potential unobserved...
View ArticleMulti-Level Multiple Imputation Margins Help
Hello, I am trying to run average marginal effects for my dependent variable "renstu". The model is multi-level by the school attended (sch_id). The data is already xtset and is imputed for missing...
View ArticleNew package kmest on SSC
Thanks as always to Kit Baum, a new package kmest is now availble for download from SSC. In Stata, use the ssc command to do this. The kmest package is described as below on my website, and estimates a...
View Articlextreg fe, drop estimated constant in stored results?
Hi, I have panel data (firmid, timeid) and want a table in latex (using esttab) with two model specifications as described below: i) "eststo: xtreg dep ind, fe" ii) "collapse dep ind, by(firmid)"...
View ArticleSolution to the small sample size?
Hi All, I have tried searching for a similar case but haven't found it yet! I need to run a regression for a project at university, and due to the subject I'm analyzing I have a relatively small sample...
View Articlegrc1leg alternatives.
Dear All, I am using Stata MP on my universities Linux based super computer and it does not have user written grc1leg installed on it. I want to use grc1leg instead of graph combine since I want all...
View ArticleNegative R squared in IV regression
Good afternoon everyone, I am running an instrumental variable regression for panel data with the command xtivreg2 and everything looks fine: the Kleibergen-Paap and Hansen statistics indicate that the...
View ArticleGMM with Unit root data
Hello, I have a question about the way I should treat unit root in unbalanced panel data analysis and estimating a GMM model Preliminary: I have run the fisher test on my key variable of interest x...
View ArticleGenerating an ID based on multiple variables
Hello Statalisters! I am working with the Birth Recode survey of the Demographic and health surveys. It has individual panel data on women's birth histories -- includes unique id for the mother (uid),...
View ArticleValue weighted returns
Dear all, I am analysing stock returns for approximately 700 companies in Japan. My data is ordered like this: Code: * Example generated by -dataex-. To install: ssc install dataex clear input float...
View ArticleCreate a subsample - Conditional, weighted random draw of observations, with...
Dear Statalisters I want to create a random subsample of my original sample; I am basically drawing geographical area to which I will apply a treatment. So, I have a few questions on random drawing:Is...
View Article"variable __000002 already defined" after regression command
Whether executed from the command line or from within the sytax file (do-file), I get, for the following command, the error shown: . xi: mepoisson event6 year##age_cat5_1##male if (parish_new != 3...
View ArticleSpregress and esttab
Hello, I am working with spatial data and trying to export my estimation results from the spregress command using the user-written package esttab (SSC). I am trying (and struggling) to manipulate...
View ArticleCreating polynomials of unit specific time trends in an unbalanced panel
Dear Statalist-members, I have a bit of a beginner question: I have an unbalanced panel of several hundred localities, which I observe over several years, and I would like to do 2 things: 1) create a...
View ArticleIssues with getting minimum date value in a data set
Hi there I'm having issues trying to identify the minimum value of date of dispensation for each drug in the data set. Here's a sample data set and I've also attached a PDF copy to make it easier to...
View ArticleAppending Errors
Hello, I am trying to append several datasets together (yes they have been cleaned and are ready for appending) but keep getting the following error message: variable E is str25 in master but byte in...
View Article