Adaptive GMRF Model (Real Data)
Description
This function estimates the effects of functional MR Images (fMRI), with the method of efficient Markov Chain Monte Carlo (MCMC) simulation. The Metropolis Hastings (MH) algorithm is used for the nonapproximate case and the Gibbs sampler for the approximate case.
Usage
1 2 3 
Arguments
data 
fMRIdata, needs to be an array of dimension

hrf 
haemodynamic response function, needs to be a
vector of length 
approximate 
logical, if 
K 
scalar, length of the MCMC path, hence iteration steps. 
a 
scalar, shape hyperparameter of the inversegamma distribution of the variance parameter (σ_i^2). 
b 
scalar, scale hyperparameter of the inverse gamma distribution of the variance parameter (σ_i^2). 
c 
scalar, shape hyperparameter of the inverse gamma distribution of the precision parameter (τ). 
d 
scalar, scale hyperparameter of the inverse gamma distribution of the precision parameter (τ). 
filter 
scalar, a value between 0 and 1 defining to
which extent the fMRIdata should be filtered. The
corresponding formular is 
nu 
scalar, shape and scale hyperparameter of the gamma distribution of the interaction weights (w_{ij}). 
block 
scalar, when 
burnin 
scalar, defining the first iteration steps which should be omitted from MCMC path. 
thin 
scalar, only every 
Note
This function is solely for two covariates and real data sets.
Author(s)
Max Hughes
Examples
1  # See example function for simulated data (one covariate).

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker. Vote for new features on Trello.