Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

setXl

Create a sequence of Xl values


Description

setXl creates a sequence of Xl values given a sequence of Xj values and a fixed difference.

Usage

setXl(Xj, diff = 1)

Arguments

Xj

numeric vector of fitted values for the covariate of interest to simulate for.

diff

numeric vector of length 1. It specifies the difference between Xj and Xl. Xl is always smaller than Xj.

Value

a vector

Examples

# Set Xj
setXj = seq(1100, 1700, by = 10)

# Find Xl that are 1 less than Xj
setXl(Xj = setXj, diff = 1)

simPH

Simulate and Plot Estimates from Cox Proportional Hazards Models

v1.3.13
GPL-3
Authors
Christopher Gandrud [aut, cre]
Initial release
2021-01-09

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.