write.baysic {BaySIC}R Documentation

Write BaySIC JAGS model files

Description

Procedurally writes JAGS model files based upon the arguments for the BaySIC model fitting function baysic.fit.

Usage

write.baysic(mut.dat, covar = NULL, prior = NULL, fn.jags = "baysic.jags")

Arguments

mut.dat

matrix or dataframe containing the observed SNV and indel. The indel counts should be contained in the final column. Column names from this object will be used to create the model file.

covar

optional matrix or dataframe of gene-level covariates. Column names from this object will be used to create the model file.

prior

optional vector of character strings which define prior distributions on the model parameters in the JAGS language format. If prior is non-NULL, it should be of length equal to all possible model parameters (sum of number of columns of mut.dat and covar)

fn.jags

file name of JAGS model file to be used. Defaults to "baysic.jags"

Details

This function is a subroutine used in baysic.fit

Value

Writes JAGS file to the location specified by fn.jags

Author(s)

Nicholas B. Larson

See Also

baysic.test


[Package BaySIC version 1.0 Index]