Quantcast
Channel: Statalist
Browsing all 65866 articles
Browse latest View live

Identifying matches (as part of dataset generation)

Dear Statalisters, I am constructing a dataset using observational data in order to analyze partner selection decisions. My dataset consists of triads, namely LEAD investors (who chose partners),...

View Article


Estimating share equations in stata 14

Hi, I am trying to estimate a system of share equations. My objective is to predict the output share of some industries in GDP, for which I want to regress the share of about 10 industries on a few...

View Article


Hansen J test after xtreg with random effects

Dear fellow stata users, I would like to run a Hansen J test after a random effects GLS regression to test for endogenity. (To be clear: I don't want to test whether to employ fixed or random effects)....

View Article

Vectorautoregression(VAR) in mean deviations form

Hello everyone, I am working with k=10 variables in a Vector autoregression (VAR) vector with over 500 monthly observations for each variable (kindly find below a sample of the data).This model is a...

View Article

Using poverty gap to know the minimum amount required to eliminate poverty

Dear All, Instead of manual computation, is there a Stata command that one can use to obtained the minimum amount required to eliminate poverty given a poverty line? Thank you, Dapel

View Article


Ordered Logit with Continuos Interaction

Dear all, I am running ordered logit regression with the presence of interaction term at cross-section data. Dependent variable: Poverty status (1= poor; 2=near poor; 3=not poor and vulnerable)...

View Article

Error code 2000 when running xtunitroot

Question has been cross-posted here: I have an excel file that I opened in stata and set into panel data: Code: xtset panelid date Code: summarize Variable | Obs Mean Std. Dev. Min Max...

View Article

Counting Number of Occurrences by ID in Dataset

Hello everyone, I am working with a dataset where each observation is a meeting that occurred at some point in time by a specific group. Hence, I have many groups that meet irregularly over time. I...

View Article


percentage format in tabulate x1 x2, row

Hi all, My problem is very simple but lamentably I can´t find a solution: I am trying to put percentage sign or add parentheses to percentage values in a table 2x2 . Regards Rodrigo

View Article


Error using onespell.ado

I am trying to drop gaps in panel-data using the Stata onespell.ado command/file. I run the file code: Code: onespell years_exp leg_totalbills, saving(test) but get an error: Code: file test.dta could...

View Article

Unit root test

I have to test a unit root test with my panel data. I'm begining in Statistics, 1 have 100 Moroccan cities from 1982 to 2014. I want to examine if my Ln(size_cities) variable has unit roots or not....

View Article

Stata: unit-root test on unbalanced panel data

This question is cross posted here. I have the following data: Code: import excel "\\dfs\wiwi\home\Perdue\Desktop\statafiles\unitroot.xls", sheet("Sheet1") firstrow clear encode cid, gen(panel_id) drop...

View Article

New command available on SSC -covbal-

Hi fellow Stata-listers, Thanks, as always, to Kit Baum, a new Stata command is now available called covbal (it stands for covariate balance, and can be downloaded by typing: ssc install covbal)....

View Article


Carlson-Parkin probability method to quantify qualitative survey data

Dear all, If the method's name in the title sounds familiar to anyone, this may significantly shorten my question: Can you give me an explanation on how to perform this method in Stata? I would like to...

View Article

count number of observations for some variables if some other variable == 1

Dear All, suppose I have N observations and four variables x y us and eu. I would like Stata to return a table which represents e.g the number of observations for which x is non missing and y is non...

View Article


Bootstrapping fund alphas to distinguish luck vs skills: program automation

Dear Forum, I have been trying to bootstrap some fund alphas derived from a Fama-French linear regression of the following form: Ri = αi + siRmt + biSMBt + hiHMLt + εi This is in order to determine...

View Article

Saving results after statsby

Sorry, have spent half an hour with the manual and online help and I still can't get this to work. I just did a series of regressions on survey data by country: . statsby _b mean=r(mean), by(country)...

View Article


Syntax to include time trend in panel data analysis

Hi everyone, I have a rather simple question but just want to be clear about it: I want to run a panel data analysis and I will try several commands to do it as I have time-invariant variables...

View Article

Problems doing multilevel modeling with imputed data in STATA 14

Using STATA 14 I performed chained multiple imputations without any problems. The syntax was mi impute chained (logit) gender (ologit) subjinc edlevel lrscale, add(5) rseed(4409) However, then when I...

View Article

esttab not show label names only code

Hi all I have some problem using esttab: first i did run: estpost tab sum genero later: esttab using example.doc, cell(b rowpct(fmt(%5.1f) par)) label unstack nonumber nomtitle collabels(none)...

View Article
Browsing all 65866 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>