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

Kaplan Meier Survival Analysis - Censoring

Hey guys and girls, i am doing a project in a hospital and am looking at the survival of renal cancer patients on a particular treatment. Now, i am going to need to do the kaplan meier analysis to get...

View Article


product looping?

Dear all, I'm curious if I can do something like this in Stata, for t = 1:12 { replace yyy = xxx*R[_n-1]*...R[_n-t] if missing(yyy) } Quintessentially, I want a for loop that updates yyy by xxx times...

View Article


How to check if data present every period

So my data consists of GP practices and periods, among other things. In other words for each practice I (might) have data for each period from 201201 - 201512 (months from 2012 to 2015). I strongly...

View Article

gladder command

Hi, I would like to check different transformations of my dependent variable. I am using the "gladder" command, but for some reason I am only getting a few of the transformations (cubic, square,...

View Article

countfit macro problems

Hello, I am trying to download the countfit macro for use with count models (http://www.ats.ucla.edu/stat/stata/faq/countfit.htm). For some reason, the macro is not coming up as an option when I use...

View Article


Stata appears to be rounding at random

Nevermind. It is late and I am being stupid. Feel free to delete this post.

View Article

Comparisons of means at timepoints (beginner question)

Hi all, I have fit the model below, and just wanted to make sure of the correct way to do a certain set of pairwise comparisons. I want to see whether the average on the outcome variable (adhdsev) was...

View Article

Unable to Run Accrual Model

Hello, I am trying to run the accruals model found at http://www.statalist.org/forums/foru...=1472789396393 but I am having trouble. For the first set of code, I receive the error message "no...

View Article


ARDL panel model in STATA

Hi mates, I have a question about ARDL model in Stata As I know The XTPMG command can calculate the ARDL (1 1). here is my command : xtpmg d.lreerq d.lgdppcq d.nfagdpq d.ltotq d.lopenq d.lgovgdpq...

View Article


Reshape long to wide: need to drop not constant observations

Hello Statalist members! I have a long dataset, which I need to reshape to wide. Some observations for some variables within i are not constant. I need to tag these observations to be able to drop...

View Article

Creating a time index

My data currently has a period variable which is a number with the first 4 digits being the year, the second two being the month - e.g. Jan 2012 is 201201. These run from Jan 2012 - Dec 2015. Is there...

View Article

Calculating returns from CRSP dataset: 5 quintiles portfolio's

I am working on a thesis project. Part of my project is calculating returns in 5 generated portfolio's based on 36 month volatility in the 1960 - 2015 period using the CRSP dataset. Sample of dataset:...

View Article

How can I drop observations equal certain numbers from two separate variables?

How can I drop observation equal certain numbers (in my case 0, -9) from two separate variables? The requirement is: drop only if observations in both variables equal 0 or -9, meaning that if one of...

View Article


Code setting for regression by city and year

In the topic entitled "regression by city and year", which I created the in the forum in March, I got help to build a syntax that would allow me to apply the command "hoi" for each state (uf) and year...

View Article

Pevious multiplication vs single variables for instrumenting

I think, that this is a more theoretical question, but I can't find a solution in literature. I am running a 2sls regression, where one variable cause a causality problem. Therefore I have instrumented...

View Article


R-Squared oaxaca (mi estimate)

Dear Statalist members, Does anyone know whether it is possible to obtain r-squared (and adj. r-squared) values for oaxaca analyses using mi estimate? Thank you,

View Article

Industry weights for post event years from a pre event year without producing...

Hello, I have panel data with 5,651 observations of a Mergers and Acquisitions Sample. I want to compute the relative industry weights for the target and acquirer industries (for weighting returns,...

View Article


Graph with two different scales

Hello, so this time I have a graph with two Y-axis scales. But the second scale seems very small. As shown down. I can't use rescale. Do you have any suggestions? Thank you very much in advance a lot!!...

View Article

Float vs. double - data precision

Dear all, Two variables in my dataset , call it xvar and yvar Code: xvar float %9.0g yvar double %12.0g I use command Code: list xvar yvar if xvar< yvar & yvar !=. it listed observations in log...

View Article

wilcoxon signed rank test z-score

Hi all, I'm stuck in a wilcoxon signed rank test z-score problem,can some one tell me how exactly command "signrank" calculate p.value and z , cause I found out the give different result compare to r...

View Article
Browsing all 65552 articles
Browse latest View live