CNVRG (version 0.1)

extract_point_estimate: @encoding UTF-8 Extract point estimates of pi parameters

Description

Takes the mean value of pi parameters for each feature and separately by treatment group.

Usage

extract_point_estimate(modelOut, countData, treatments)

Arguments

modelOut

Fitted Stan object

countData

The count data modelled. Must be in exactly the same format.

treatments

An integer describing how many treatment groups were modelled.

Value

A dataframe specifying point estimates for each feature in each treatment group.

Examples

Run this code
# NOT RUN {
com_demo <-matrix(0, nrow = 10, ncol = 10)
com_demo[1:5,] <- c(rep(3,5), rep(7,5)) #Alternates 3 and 7
com_demo[6:10,] <- c(rep(7,5), rep(3,5)) #Reverses alternation
out <- varInf(com_demo,starts = c(1,6), ends=c(5,10))
extract_point_estimate(modelOut = out, countData = com_demo, treatments = 2)
# }

Run the code above in your browser using DataCamp Workspace