You are here:
Vanderbilt Biostatistics Wiki
>
Main Web
>
TWikiUsers
>
BryanShepherd
>
WhenToStartHaartCode
(21 Sep 2011,
BryanShepherd
)
(raw view)
E
dit
A
ttach
This is the code used to for the analyses in the manuscript "Estimating the optimal CD4 count for HIV-infected persons to start antiretroviral therapy." No data files are included. * [[%ATTACHURL%/Main.nw][Main.nw]]: Main.nw is a Sweave file that serves as the central program to prep the data for analysis, compute the regimen rules, call the appropriate functions to perform the analysis (see below for an explanation of each function), and then format the results in tables and graphs. Data necessary for the analysis are in four separate files -- the clinic data including CD4 and viral load information (d2), non-ADE information for each subject (non.ade), the treatment data containing one record per treatment for a given subject (trt), and the ADE or OI information for each subject (oi.df) with a given subject potentially having up to 4 ADEs listed for a given age. * [[%ATTACHURL%/solution.R][solution.R]]: R function that merges the clinic and treatment data accounting for any gaps in treatment. * [[%ATTACHURL%/build.time.df6.R][build.time.df6.R]]: R function that creates the time-dependent data frame based on the months of follow-up. Follow-up of 6, 12, 24, and 36 months were considered. These data were used when calculating weights. * [[%ATTACHURL%/build.df6.R][orig.build.df6.R]]: R function that computes the utilities, fits models used to compute the inverse-probability weights, and estimates the CD4 at which each utility is maximized. * [[%ATTACHURL%/bootstrap6.R][bootstrap6.R]]: R function that calculates the bootstrapped confidence intervals if the logical "bootstrap" is set to TRUE. It performs nboot number of replications. * [[%ATTACHURL%/figure2-code.R][figure2-code.R]]: R function that creates Figure 2 of manuscript. * [[%ATTACHURL%/regRule.R][regRule.R]]: R function that assigns regimens based on pre-specified rules regarding CD4 counts. * [[%ATTACHURL%/build.df6.R][build.df6.R]]: build.df6.R
E
dit
|
A
ttach
|
P
rint version
|
H
istory
: r12
<
r11
<
r10
<
r9
|
B
acklinks
|
V
iew topic
|
Edit
w
iki text
|
M
ore topic actions
Topic revision: r12 - 21 Sep 2011,
BryanShepherd
Main
Department Home Page
Biostatistics Graduate Program
Vanderbilt University Medical Center
Main Web
Main Web Home
Search
Recent Changes
Changes
Topic list
Biostatistics Webs
Archive
Main
Sandbox
System
Register
|
Log In
Copyright © 2013-2022 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Vanderbilt Biostatistics Wiki?
Send feedback