Dear stata listers
I'm using stata to analyse time-to-event data. Specifically, I'm trying to relate licensing data to merger and acquisition events in the bio-pharmaceutical industry.
To that aim, I use the Cox PH model, and I've managed to set up and analyse the data in stata (v 14.2) by means of the commands listed below - an excerpt of the datafile can be found in attachment.
The problem I'm facing is related to the analysis of a certain covariate, i.e. the total asset value of the licensees. This value is not constant and is dependent on the licensee.
My question is now: how to correctly implement this specific covariate in the existing Cox PH model.
I've searched in the internet but I haven't found a solution to this particular problem.
Any help/suggestions would be highly appreciated.
Many thanks in advance
Alex (stata 14.2) [ATTACH]temp_12751_1544367960848_705[/ATTACH]
PS In the dataset, I've already defined an additional ID (value) for each unique licensee (named: Licensee ID), the total asset value of the licensee is in a column named Licensee Total Assets (th USD).
*Define variables for Survival Analysis
global time Date
global event M_A
global id ID
global xlist LicenseCumulAll
gen PeriodStart = mdy(1, 1, 2000)
* Set data as survival time
stset $time, id($id) failure($event) origin(time PeriodStart) scale(365.25)
* Cox proportional hazard model
stcox $xlist, cluster(ID)
Related Posts with Cox proportional hazards model a non constant covariate
variable with multiple conditionsHello. I'm attempting to create a new variable (metabolic syndrome) based on meeting at least three…
Sample Size AUC/AUROCHi all, I'm working on a study that will evaluate several score to predict the same outcome (surviv…
Number of instruments in GMM-system estimatorDear all, I am currenlty working on the causal relationship between the informal care decision and …
Problems with simple adjusted logistic regression on small sample-size (n=13)Hi I am trying to make a simple logistic regression adjusted for one potential confounder ("Antibtio…
Question about scanning through directory and compress all stata filesHello, I just wanted to ask if I might run into any issues running the code below. We have some tera…
Subscribe to:
Post Comments (Atom)
0 Response to Cox proportional hazards model a non constant covariate
Post a Comment