multimode_density_f: obtain conditional pdf value for y values for "v"...

Description Usage Arguments Value

View source: R/data_Y.R

Description

conditional pdf is defined under y ~ p1 M1(x) + p2 M2(x) where (M1,M2)(x) ~ right_intercept + N(right_beta*x, right_sd) and (p1,p2) = right_proportions

Usage

1
2
3
4
5
6
7
8
multimode_density_f(
  y,
  x_val,
  beta = c(-1, 1),
  intercept = c(0, 0),
  sd = c(1, 1),
  proportions = c(0.5, 0.5)
)

Arguments

y

can be a vector

x_val

a single value

beta

vector length 2, see above

intercept

vector length 2, see above

sd

vector length 2, see above

proportions

vector length 2, see above

Value

conditional pdf values for y vector


benjaminleroy/simulationBands documentation built on Dec. 19, 2021, 8:41 a.m.