setXl function

Create a sequence of Xl values

Create a sequence of Xl values

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

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.

Returns

a vector

Examples

# Set Xj setXj = seq(1100, 1700, by = 10) # Find Xl that are 1 less than Xj setXl(Xj = setXj, diff = 1)
  • Maintainer: Christopher Gandrud
  • License: GPL-3
  • Last published: 2025-04-18