showClass("stwin")
# create a stepp window of type "sliding" with (r2) size of subpopulation
# in each window to be 200 and (r1) allows only 50 patients in the
# overlapping windows
mywin <- new("stwin", type="sliding", r1=50, r2=200)
# print a summary of the stepp window object created
summary(mywin)
# create a stepp window object of type "sliding_events",
# (event-based) subpopulation size is 200 and allows
# only 50 events between overlapping windows
mywin <- stepp.win(type="sliding_events", e1=50, e2=200)
# print a summary of the stepp window object
summary(mywin)
Run the code above in your browser using DataLab