Slice_Init: Slice_Init

View source: R/Slice_Init.R

Slice_InitR Documentation

Slice_Init

Description

function displaying the measured data (x,y), and establishing the corresponding functions y(x) and p(y)

Usage

Slice_Init(x, y)

Arguments

x

numeric (required) a variable

y

numeric (required) the measured value for x

Value

a list with the following elements

$x0 the initial point

$hist_y a histogram of y density

$foo_y a function p(y)

$foo_x a function y(x)

Examples

x<-50:550
y<-dnorm(x,300,75)
if (dev.cur()!=1)dev.off()
Slice_Init(x,y)


Zink-Antoine/Slice_sampler documentation built on Feb. 27, 2025, 9:23 p.m.