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

Store predictions from model as matrix rather than variable

I am running an linear probability model developed by Chernozhukov et al. Specifically, the method requires estimating a model for every unique value of a dependent variable (in our context, total...

View Article


Heterofactor routine

Dear All, I have been trying to use the heterofactor routine but I get a function specific error (error type r(3489)) stating "invalid depvar index". I could not find any documentation disclosing how...

View Article


Reporting predicted probabilities

Hello. I've been asked to report the results of a logit model (binomial logistic regression) in predicted probabilities instead of coeficients. I'm using margins (atmeans) to compute the results. My...

View Article

Calling data from SharePoint

My company is moving to store all documents on SharePoint sites rather than on our servers. This includes our Stata .dta and .do files. I know that Stata can call data saved on websites, but I'm not...

View Article

expand panel data: list all years between two dates + assign project_id

Hi everyone, I have been working on this problem for a few hours now and would greatly appreciate some help. I am also new to Stata (version 12) and currently preparing a paneldata set for my bachelor...

View Article


Condition simultaneous with variables dummy with the same condificación

Hello, I would like to support me with the following: I have 18 variable dummy with information about beneficiaries of projects coded of it following way: label list X (18 variables) 1 yes (benefited)...

View Article

New package qrisk2cmd on SSC

Thanks as always to Kit Baum, a new package qrisk2cmd is now available for download from SSC. In Stata, use the ssc command to do this. The qrisk2cmd package is described as below on my website. The...

View Article

Cross tabulation for 4 variables with 900 observations

Hi all, I have been trying to figure this one out from a Stata manual on crosstabulation but the result I am getting is lengthy (9 pages) when I used the command . table result visit eweid udderhalf ....

View Article


Panel Data - Fixed Effect model with low within variation

Dear all, I have read several similar posts about this topic. Still, I havn't found a clear answer. Thus, I hope you can help my with this matter. For my thesis, I'm using panel data (8years) to...

View Article


sumtable error

Hi all, I am trying to use -sumtable- and I keep getting an error: . sumtable D_A_Hosp Site, vartype(binary) file dummy1234 not found r(601); Any ideas? Thanks very much in advance. Caroline

View Article

-tabsplit- is creating empty string variables

I am using -tabsplit- to try and create dummy variables from a multi-selection string variable, "features". The variable "features" lists up to 11 features separated by commas (e.g. "P2P, Bill payment,...

View Article

- xthrtest - now on SSC: Heteroskedasticity Robust LM(k) test for serial...

Dear all -xthrtest- is now available on SSC, thanks to Kit Baum. It performs the Born & Breitung (2016) heteroskedasticity-robust test for serial correlation. It takes the combined residuals (fixed...

View Article

- xtistest - now on SSC: Portmanteau IS test for serial correlation in a...

Dear all -xtistest- is now available on SSC, thanks to Kit Baum. It performs the Inoue & Solon (2006) Portmanteau test for serial correlation. It takes the standard residuals (option e in predict)...

View Article


Combining two datasets

Dear Statlisters, I am currently working a thesis on strategic alliances. For this thesis, I work with both patent data and alliance data. First, let me show a sample of the two datasets. Patent data....

View Article

It is possible to adjust first column on "table" command?

Table command only gives me at maximum 40 characters on first column (categorical variable) I have, however, a dataset with organization names with 40+ characters. Is there any way do display its full...

View Article


-glm- vs -sem-: Point estimates are the same, but SEs are not

Hello folks. My apologies if this has been asked before--I did search, but failed to find anything on it. When I estimate the same model via -glm- and -sem-, I get the same point estimates, but...

View Article

vecrank lag selection

Dear all My doubt is about the command to see how many cointegration relationships exist. ​​​ ​ vecrank This command has de option to establish a maxlag option and it evaluates if that lag is of good...

View Article


FE with demeaned variables: Coefficients do not match.

Below is my code. The coefficient I get from xtreg is 3.39. The coefficient I get from demeaned variables is 3.38. I believe the coefficient should be exactly the same! Please correct code. Much...

View Article

-Twoway- : skipping missing observations

I am seeking to display the following simulated -twoway- graph, in which subjects are identified by the variable ID (which in this simulated data are 3, 8 and 9). I am wondering whether it is possible...

View Article

Using two different weights with a crosstab?

Hi Statalist! Using survey data, I want to compare responses from 1978 to responses from 2014. While the survey asked the same question in each year, they used different sampling methodologies to...

View Article
Browsing all 65037 articles
Browse latest View live


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