Description Usage Arguments Examples
View source: R/make_lineup_data.R
capture mean structure between X and Y with local linear regression with optimal bandwidth, then permute residuals
1 2 | make_alt_dat(dat, xname = "x", yname = "y", bootstrap = FALSE,
jitter = 0, both = FALSE)
|
dat |
dataframe |
xname |
column name from dat for x-dimension in plots (defaults "x") |
yname |
column name from dat for y-dimension in plots (defaults "y") |
bootstrap |
logical indicator of if (bootstrap==TRUE) bootstrapping used, if (bootstrap==FALSE) then LOESS residuals permuted |
jitter |
amount of jitter to add to point locations - units of sds |
both |
logical indicator to run both LOESS residual permutation and bootstrapping of points |
1 2 3 4 | dat=data.frame(x=rnorm(25))
dat$y=dat$x+rnorm(25)
alt_dat <- make_alt_dat(dat)
alt_dat <- make_alt_dat(dat,bootstrap=T,jitter=T)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.