write.check {MBNMAtime} | R Documentation |
Checks validity of arguments for mb.write
Description
Checks validity of arguments for mb.write
Usage
write.check(
fun = tpoly(degree = 1),
positive.scale = TRUE,
intercept = NULL,
rho = 0,
covar = NULL,
omega = NULL,
link = "identity",
sdscale = FALSE,
class.effect = list(),
UME = c()
)
Arguments
fun |
An object of class |
positive.scale |
A boolean object that indicates whether all continuous mean responses (y) are positive and therefore whether the baseline response should be given a prior that constrains it to be positive (e.g. for scales that cannot be <0). |
intercept |
A boolean object that indicates whether an intercept (written
as |
rho |
The correlation coefficient when modelling within-study correlation between time points. The default is a string representing a
prior distribution in JAGS, indicating that it be estimated from the data (e.g. |
covar |
A character specifying the covariance structure to use for modelling within-study correlation between time-points. This can be done by specifying one of the following:
|
omega |
DEPRECATED IN VERSION 0.2.3 ONWARDS (~uniform(-1,1) now used for correlation between parameters
rather than a Wishart prior).
A scale matrix for the inverse-Wishart prior for the covariance matrix used
to model the correlation between time-course parameters (see Details for time-course functions). |
link |
Can take either |
sdscale |
Logical object to indicate whether to write a model that specifies a reference SD
for standardising when modelling using Standardised Mean Differences. Specifying |
class.effect |
A list of named strings that determines which time-course
parameters to model with a class effect and what that effect should be
( |
UME |
Can take either |
Details
Used to check if the arguments given to mb.write are valid. The function will return informative errors if arguments are mispecified and will return an object that indicates whether the arguments imply modelling a correlation between time points if it passes.
Value
A boolean object that indicates whether the arguments imply modelling correlation between time points.