questions about firthlogit
Hello, my dependent variable is binary and I am running models using the firthlogit command. My total sample size is over 3,000, but there are only 28 people in the "1" category. I have a few...
View ArticleUsing complex sampling structure with fmlogit command
Hello, I am currently working, in Stata 14, with the user written command fmlogit, by Maarten Buis. I know that fweights and pweights are allowed, however I have stratified sample data, so I would like...
View ArticleEstimating over dispersion in a NBREG model
Dear all, I am working with a highly skewed dependent variable. I would like to estimate the effects of a series of independent variables on both the mean and the dispersion of my DV. That is, I would...
View ArticleError when installing spost
Hi, I need to use spost commands on my machine at home (MacBook running OS X, 10.8.5). I use Stata 13. I have tried to install spost using the findit command, and using the following text: "net install...
View ArticleQuestion: Plotting two overlaid frequency bar charts
Hi all, I am comparing the distributions of variables in two groups. For numeric variables I do something like this: /* Generate a dummy variable and a test variable with different distributions per...
View Articleteffects density
Hi Statalist, I'm trying to correctly interpret the plots I get when running "teffects density" after a teffects psmatch, and the difference between this and the 'teffects overlap' plots. The manual...
View ArticleData format problem
I have a dataset from the World Bank on ginis. The MVs were originally .. but I changed them to "." Brought them into Stata, encoded the ginis, but I am now getting valid values for all cases: .The...
View Articlemultiple imputation and pmm with panel data
A question about imputing missing values in panel data. Suppose I have a panel data set (n=1000 individuals) with variables a-z for years 1-4. For 10 individuals, variable d is missing in year 3. Is...
View Article(Durbin-wu-) Hausman test
Dear all, first of all Id like to say that I have already benefitted greatly from the helpful replies given on this forum throughout the last weeks. I am very new the software stata and have to admit...
View Articleproducing stats each year in one table
Hi I use bysort yr: tabstat varlist, stats(mean sd p1 p25 median p75 p99)columns(statistics) to produce stats for my variables each year. The problem is that the output is a table for each year. Is...
View ArticleMean of a timeframe
hey, I want to know the mean of one variable in the timeframe from 2000-2010. All other years should be ignored. Can anybody tell me what the command is? I can't find it anywhere. Help is highly...
View ArticleRegression with dummy variable
hey, I have to calculate a regression with „pro_env“ as the dependent variable and a dummy variable, that differentiates between german and american parties (ger_vs_usa), as my independent variable (0=...
View ArticleHansen 2 step 2 stage to estimate the linear rational expectations model of...
Hi Statalist, I am trying to estimate the following no arbitrage relationship : P(t)=A*(P(t+1)+d(t+1)), where P is the stock price and d is the dividend. I have that the dividend is an endogenous...
View ArticleIs there a way to get the data type of a variable without loading the dataset...
I have an ado program that merges (in a complicated way, not just the "merge" command) two large data sets, and I'd like the program to perform type checking on each dataset before beginning the merge....
View ArticleCan the command “bacon” be used to detect panel data’s outliers in Stata?
Dear Statalisters, Could you tell me whether the command “bacon” be used to detect panel data’s outliers in Stata? Thanks.
View ArticleCarrying out unit root tests for non-consecutive panel ids
Dear all, I'm analyzing a panel data of 497 panels with 52 observations each ranging from years 1958-2009. The panel IDs are non-consecutive. I'm new to stata programming. Please guide me on how to go...
View ArticleProblem with calculate MLE
Dear all: I am trying to calculate MLE like this: Code: program mlequation1 version 13 args lnf b0 b1 v tempvar res qui gen double `res'= $ML_y1 - `b0' - $x1^`b1' qui replace `lnf' =...
View ArticleWhy result not show p-value and ommited variable?
Dear Statalist I ran model Code: clogit choice asc i2 i3 i5 i6 i7 log2 log3 log4 log6 log7 log8 salary ba_salary i.sex ,group( ncs) cluster(id) Iteration 0: log pseudolikelihood = -1651.9609 Iteration...
View ArticleInclude or exclude variable?
Hi! I have a datasample on shipbuilding prices, with Dep. var: PRICE/CGT and Ind. var: x1, ...., x6, GT (?). GT is a weight factor for an individual ship. CGT is a corrected weight factor, done by a...
View ArticleTime variable in graph bar
Hi, I am creating some charts with graph bar and have a time variable called time (type: float, format: %tq) which is specified in the over option.The variable takes 3 values (2005q4, 2010q4, 2015q4)...
View Article