crrprep: Competing risks data preparation

Description Usage Arguments Value See Also Examples

Description

Adds covariates for clickstream position and number of page visits to the dataset and prepars censoring.

Usage

1
crrprep(linkdata, from, cutpoint = NULL, censoring = TRUE)

Arguments

linkdata

Data frame with session ID, user ID, from, to, dwelltime, covariate

from

Starting page for competing risks regression

cutpoint

Upper bound for page dwell time

censoring

If TRUE PI's with dwell times larger than cutpoint are regarded as censored.If FALSE, these observations are deleted

Value

Returns a data frame suited for competing risks regression.

See Also

msprep

Examples

1
2
3
data(webshop)
crdata <- crrprep(webshop, from = 2, cutpoint = 300)
head(crdata)

cmprskWeb documentation built on May 31, 2017, 5:08 a.m.