View source: R/Simulations_functions.R
simu_IBSS_ash_vanilla | R Documentation |
Simulate data under a simple mixture normal prior
simu_IBSS_ash_vanilla(lev_res = 7, length_grid = 10, pi0 = 0.85)
lev_res |
numeric, corresponds to the resolution of the simulated function (ideally between 3 and 10) |
length_grid |
vector, numerical corresponds to the length of the grid of sigma for mixture component (cf ashr package) |
pi0 |
numeric, contains a digit between 0 and 1, which corresponds to the proportion of wavelet coefficients that are exactly 0 |
out <- simu_IBSS_ash_vanilla(lev_res=8, length_grid= 10, pi0= 0.85)
plot(out$sim_func, type="l", ylab="y")
out$emp_pi0
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.