simulation_nonconformal_mass_score_mix_reg: simulation based non-conformal mass scores

Description Usage Arguments Value

View source: R/flexmix_poor_fit_Y.R

Description

this wrapper assumes a model has been fit relative to the 2 mode mixture of linear regression (similar to flexmix) for the underlying mass non-conformal mass scores

Usage

1
simulation_nonconformal_mass_score_mix_reg(x, y, model_params, sim_num = 100)

Arguments

x

true x

y

true y

model_params

list of model parameters of with names as follows

  • beta: a vector, length 2

  • intercept: a vector, length 2

  • sd: a vector, length 2

  • proportions: a vector, length 2

that represent a conditional distribution defined by

y ~ p1 M1(x) + p2 M2(x)

where (M1,M2)(x) ~ right_intercept + N(right_beta*x, right_sd) and (p1,p2) = right_proportions

sim_num

number of simulations to base the kernel density estimate of the cde

Value

nonconformal score for (x,y) pair under specified model


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