Description Usage Arguments Value Examples
Plots the observed test statistic of a performed GHCM test together with a density estimate of the estimated asymptotic distribution of the test statistic under the null.
1 2 
x 

bw 
a string or numeric. If 
... 
additional plotting parameters. 
None.
1 2 3 4 5 6 7 8 9 10  set.seed(1)
library(refund)
data(ghcm_sim_data)
# Test independence of two scalars given a functional variable
m_1 < pfr(Y_1 ~ lf(Z), data=ghcm_sim_data)
m_2 < pfr(Y_2 ~ lf(Z), data=ghcm_sim_data)
test < ghcm_test(resid(m_1), resid(m_2), X_grid = NA, Y_grid = NA )
plot(test)

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.