Learn R Programming

LoTTA (version 0.1.0)

optimal_k: function that searches for initial parameters of outcome function to initiate the sampler

Description

function that searches for initial parameters of outcome function to initiate the sampler

Usage

optimal_k(x, y, c, lb, ubr, ubl)

Value

  • a list with kl and kr and cubic functions parameters

Arguments

x
  • score data

y
  • outcome data

c
  • cutoff

lb
  • minimum window size

ubr
  • maximum value of the window's right boundary point

ubl
  • minimum value of the window's left boundary point