Description Usage Arguments Details Value Note Author(s) References See Also Examples
This function creates a series of overlapping windows by fixing the biomarker scale window width
1 | ww.windows(event, censor, marker, wdth, sspeed)
|
event |
This is the survival time. It is a positive numerical vector with no missing values. |
censor |
This specifies censor information. It is a vector, with 1 indicating an event and 0 indicating right censored. No missing values are allowed. |
marker |
This is the biomarker information (or other interesting variables). It is numerical with no missing values. |
wdth |
This is to specify window width of each overlapping window. The window width is defined based on the biomarker scale. The smaller the window width is, the more the overlapping windows are specified. |
sspeed |
This is to specify the window sliding step. Since the window is gradually moving from small values on the left to the large values on the right. This variable specifies the window sliding step being removed from the left and added on the right, in order to keep the same window width for each window. |
It begins by ordering all the subjects based on their biomarker values from low to high. Let x_1, x_2, …, x_n be the ordered unique values of X observed in the data. Then a series of overlapping windows can be defined using two parameters: γ - the biomarker-scale window width and ν - the window sliding step. Because the window is gradually moving from small values on the left to large values on the right, in order to keep the same window width for each window. The first window starts from the first subject with the smallest biomarker value x_1, including subjects whose biomarker values are in the biomarker-scale window of [x_1, x_1+γ]. The second window will move forward by ν biomarker-scale width, and include subjects whose biomarker values dropped in the second window [x_1+ν, x_1+ν+γ]. This process continues until all subjects have been included in at least one window. Subjects can be included in several windows.
A list with components:
xwin |
A series of marker values which will be assigned to the estimated survival rates within each window. |
ntotal |
The total number of overlapping windows defined. |
wdata |
A list of overlapping windows and each list representing a window with data frame of event, censor and marker |
nsam |
A vector, with each number representing the number of patients within each overlapping window. |
winsize |
A vector, with each number representing the half width for each overlapping window. Each window width is two times of it. |
R packages survival and msm need to be installed before running the function.
Hui Yang huiy@amgen.com, Rui Tang rui_tang@vrtx.com and Jing Huang jinghuang0@gmail.com
Yang H., Tang R., Hale M. and Huang J. (2016) A visualization method measuring the performance of biomarkers for guiding treatment decisions Pharmaceutical Statistics, 15(2), 1539-1612
1 2 3 4 5 6 7 8 |
## Window width is specified as 10 and window sliding step is 1:
object = ww.windows(event=wpcdata$OSday, censor=wpcdata$OScensor,
marker=wpcdata$Biomarker1, wdth=10, sspeed=1)
print(object)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.