Description Public fields Active bindings Methods Examples
Deming
facilitates a non-parametric check of neuromodulation.
This class is a wrapper around a cmdstanr::CmdStanModel
class.
cmdstanr_version
Version of cmdstanr used to build models
cmdstan_version
Version of cmdstan used to build models
standata
used to fit model
prior
used to fit model
cmdstanmodel
Underlying cmdstanr::CmdStanModel
new()
Initialize new instance of class Deming
Deming$new(d, x, y, tuning_var, id_var, prior = DemingPrior$new())
d
dataframe from which to make standata.
x, y
Names of columns in d which contain the x and y values
tuning_var
Name of column across which there was testing
id_var
Name of column indexing ids
prior
A DemingPrior
m <- sub02 |> tidyr::pivot_wider(names_from = contrast, values_from = y) |> dplyr::mutate(orientation = factor(orientation)) |> Deming$new(low, high, tuning_var = orientation, id_var = voxel) m m$cmdstanmodel
make_standata()
Prepare data for running model
Deming$make_standata(d, x, y, tuning_var, id_var)
d
dataframe from which to make standata.
x, y
Names of columns in d which contain the x and y values.
tuning_var
Name of column across which there was testing. Column must be a factor.
id_var
Name of column indexing units (e.g., voxels, cells). Column must be a factor.
named list
sample()
Draw samples from the posterior of the model
Deming$sample(...)
...
arguments passed to cmdstanr::sample().
An object of class cmdstanr::CmdStanMCMC
clone()
The objects of this class are cloneable with this method.
Deming$clone(deep = FALSE)
deep
Whether to make a deep clone.
1 2 3 4 5 6 7 8 9 10 11 | ## ------------------------------------------------
## Method `Deming$new`
## ------------------------------------------------
m <- sub02 |>
tidyr::pivot_wider(names_from = contrast, values_from = y) |>
dplyr::mutate(orientation = factor(orientation)) |>
Deming$new(low, high, tuning_var = orientation, id_var = voxel)
m
m$cmdstanmodel
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.