\name{GibbsNPFun.ts} \alias{GibbsNPFun.ts} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Function to compute the Gibb's sampler for the series data design. } \description{ This function obtains the posterior samples for the parameters of the linear model on the mean of the gene functional classes under a time series data design. These posterior samples are for the parameters for the model that identifies only gene functional classes that present non-parallel time course trajectories between phenotypes. } \usage{ GibbsNPFun.ts(y.mu.a, y.mu.b, grp.sz, beta.mat, alfa.0.vec, alfa.mat, sgm.alfa, rho, pi.i, mm, aa.pi, lmbd, df.lmbd, lmbd.alf, indexes.1, indexes.2, num.time.pnts, num.pcnts, apriori.diff.exp, nsim, burn.in, often, prob.cut.off) } %- maybe also 'usage' for other objects documented here. \arguments{ \item{y.mu.a}{ A \code{\link[GeneGroupAnalysis]{MCMCData.ts}} item with the preprocessed data matrix for phenotype a. } \item{y.mu.b}{ A \code{\link[GeneGroupAnalysis]{MCMCData.ts}} item with the preprocessed data matrix for phenotype b. } \item{grp.sz}{ A \code{\link[GeneGroupAnalysis]{SizeGOAffyGrps}} item containing a vector with the set sizes of the gene groups with the size desired. } \item{beta.mat}{ Matrix for the posterior samples for the parameter Beta. } \item{alfa.0.vec}{ Vector for the posterior samples for the baseline parameter for Alpha. } \item{alfa.mat}{ Matrix for the posterior samples for the parameter Alpha. } \item{sgm.alfa}{ Matrix for the posterior samples of the variance of the prior distribution for the parameter Alpha. } \item{rho}{ Vector for the posterior samples for the parameter Rho. } \item{pi.i}{ Vector for the posterior samples for the parameter Pi. } \item{mm}{ A real number for the mean of the Beta distribution for the non-zero part for the parameter Pi. } \item{aa.pi}{ A real number for the precision parameter of the Beta distribution for the non-zero part for the parameter Pi. } \item{lmbd}{ A prior estimate for the distribution for the variance assumed on the data. } \item{df.lmbd}{ An integer defining the degrees of freedom for the matrix apriori estimate for the distribution for the variance assumed on the data. } \item{lmbd.alf}{ A prior estimate for the prior distribution for the variance for the parameter Alpha. } \item{indexes.1}{ Vector of integers defining the indexes in the data that delineate the different time points for the sample identifiers (columns of the data set). } \item{indexes.2}{ Vector of integers defining the indexes in the data that delineate the different time points for the sample identifiers (columns of the data set) of the baseline parameter of Alpha. } \item{num.time.pnts}{ An integer defining the number of time points considered. } \item{num.pcnts}{ An integer defining the number of subjects considered. } \item{apriori.diff.exp}{ An integer for the expected number of apriori differentially expressed gene groups. } \item{nsim}{ An integer defining the total number of iterations for the Gibb's sampler. } \item{burn.in}{ An integer defining the number of iterations that define the burn-in period for the posterior samples generated. } \item{often}{ An integer defining the frequency of the iterations to print the number of differentially expressed gene functional classes up to those iterations. } \item{prob.cut.off}{ A real number defining the cut off on the probability of functional gene classes differentially expressed between phenotypes across the time course. The number of functional gene classes that pass this threshold will be printed put during the iteration procedure of the Gibb's sampler. } } \details{ This function calculates the posterior samples for the parameters of interest for the time series data design, where the objective is to calculate the functional gene classes that are differentially expressed between phenotypes across the time course. During the iteration process, this function prints out the number of differentially expressed gene functional classes with the desired probability, defined by prob.cut.off. } \value{ This function returns a list containing the following results: %% If it is a LIST, use \item{Beta}{Matrix with the posterior samples for the parameter beta.} \item{Alfa.0}{Vector with the posterior samples for the baseline for the parameter alpha.} \item{Alfa}{Matrix with the posterior samples for the parameter alpha.} \item{Pi}{Vector with the posterior samples for the parameter pi.} \item{Rho}{Vector with the posterior samples for the parameter rho.} } %%\references{ %% ~put references to the literature/web site here ~ %%} \author{ A. Quiroz-Zarate and John Quackenbush. } %%\note{ %% ~~further notes~~ %%} \seealso{ A detailed example on the use of this function is provided in the \code{GeneGroupAnalysis} Vignette. } \examples{ #- vignette("GeneGroupAnalysis") } %%% Add one or more standard keywords, see file 'KEYWORDS' in the %%% R documentation directory. %%\keyword{ ~kwd1 } %%\keyword{ ~kwd2 }% __ONLY ONE__ keyword per line %%