Quantcast
Channel: Statalist
Browsing all 72758 articles
Browse latest View live
↧

Reshape long to wide - can this be done with this data

Hello, Below is dummy data which replicates data which is extracted from an official database. My understanding of reshape long to wide is that there needs to be an i option (that specifies each...

View Article


Regressions in loop

Dear Statalisters, I need to run several regressions. The sample is given in the codes below: : loc covariate cpauc0c hba1c0c agec sex gadpos znt8pos // COVARIATES loc mvpa mvpa0c mvpad //model-1 loc...

View Article


Trouble with ranks

Hi all, I've had a look around and I can't seem to find an answer to my question. I have a database of local election results, with each candidate who stood, their vote share, the ward they stood in...

View Article

TwoMeans Command and Local Macros / Scalars

I try do a power analysis and try to insert a scalar or a macro in the command which leads to the error message "means must contain numbers" Code with a local : sysuse auto.dta quietly sum mpg, d local...

View Article

cii - caluclation of confidence interval

solved.

View Article


Making program's standard error results available available for _se[var] call?

Hi everyone, So I'm working on extracting output from a user generated program (traj). I can get the B coefficients to post as vector matrix e(b) without any trouble. This means I type something like:...

View Article

Direct standardization of variables (dstdsize) based on epidemiology

Regarding direct standardization of variables based on epidemiology, I was wondering what is the correct way to implement the command dstdsize in the following situation: 1) I need to...

View Article

Analyzing math scores by clustering SE by classroom

Hi everyone, I have an unbalanced panel data of students' math scores (from a standardized math exam given to students selected at random) and several demographic variables. I am trying to determine...

View Article


Data merge

Dear All, I am doing a gravity model and I am having problems with merging two data sets, I want me data set to look like that (picture attached). Now I have a one world data set, with the GDP from...

View Article


Replicate entries with different column values

Hi! I have something like this: Sales Firm Split1 Split2 200 A and B A B 300 A A I want to it be like this Sales Firm Split1 Split2 New 200 A and B A B A 200 A and B A B B 300 A A A Is it possible?...

View Article

Very Basic tsrtest/permtest2 errors

I am trying to use STATA for the first time for a one off assignment sort of thing. I have created a do file and am trying to test the randomness in a data set I have been given. After perusing the...

View Article

Error using CMP for estimation of SURE model with endogenous fixed effects

Dear Stata-listers, I have the following problem in using the CMP command (CMP most updated version, Stata 13 MP, system = Windows). I need to estimate the following system of equations y1 = alpha1_J +...

View Article

System GMM

I am very confused while using two step system GMM. In stata, there have been given three options for explanatory variables such as independent, predetermined and endogenous variables. i don't know how...

View Article


Possible to label _at outcomes in margins table output and suppress legend...

I am running Stata 13 on Windows 10, using ordered logit models in complex survey data. I am computing marginal effects for representative values of variables, and the _at legend is quite long. I...

View Article

plot of various r2_a from models which use different numbers of lags

I am trying to make a plot which supports a choice of a certain number of lags (which I call here set_of_lags or sol). I did it in a spreadsheet, and got a nice curve, so now I want to do it properly....

View Article


Autocorrelation and Partial Autocorrelation

Dear all , am in the middle of my ​research and was just wondering if any one knows how to conduct an auto correlation test and a time series using stata. Thank you!

View Article

Sorting data

Dear All, I have a data: : Month 1974 1975 1976 1977 1978 1979 1980 . . . 2011 January 0.6579 0.6158 0.6244 0.631 0.6374 0.6475 0.5563 151.5455 February 0.6579 0.6146 0.6236 0.631 0.6475 0.5482 0.5482...

View Article


instrumental variables (ivregress 2sls) in combination with fixed effect

-

View Article

arrowheads in stata graph

Hi, could someone tell me how to add an arrowhead to a line in stata graphics?

View Article

How do I analyze the change in relationship between two variable over time?

I tried to use the search box but couldn't really find anything helpful. I'm sorry if this question is a bit too elementary I have a panel data of various firms from 80's to 90's, and I want to figure...

View Article
Browsing all 72758 articles
Browse latest View live


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