generate_discontinuous_data: Simulate nonsmooth data

Description Usage Arguments

View source: R/generate_discontinuous_data.R

Description

Simulate nonsmooth data

Usage

1
2
generate_discontinuous_data(n, n_i, k, s_y = 1, s_x = 1, delta_s,
  nt = 101)

Arguments

n

sample size

n_i

number of observations per individual

k

tuning parameter which controls the distribution of the parameters that determine the surrogate value

s_y

error standard deviation for the outcome

s_x

error standard deviation for the surrogate

delta_s

residual treatment effect, the parameter of interest

nt

number of possible observation times for the longitudinal surrogate


denisagniel/longsurr documentation built on March 1, 2020, 3:35 a.m.