# create a stepp window object of type "sliding",
# subpopulation size is 200 and allows only 50 patients
# between overlapping windows
mywin <- stepp.win(type="sliding", r1=50, r2=200)
# print a summary of the stepp window object
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