sortNames: Sort column names by study number, then by arm number

Description Usage Arguments

View source: R/sortNames.r

Description

Creates a rearranged vector of column names to be used to reorder columns for compatibility between Stan and JAGS sampling output

Usage

1
sortNames(string, ns)

Arguments

string

A character string of the prefix for the desired column names

ns

The number of studies This function is used in convertToBUGSnetRun to ensure the ordering of the data is the same between Stan and JAGS output


augustinewigle/StanNet documentation built on July 21, 2020, 12:13 a.m.