--- a +++ b/man/get_array_prevalence.Rd @@ -0,0 +1,34 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/prevalence.R +\name{get_array_prevalence} +\alias{get_array_prevalence} +\title{Make array with the prevalences by treatment arm, recruitment arm and +prevalence set} +\usage{ +get_array_prevalence( + arm_structure_mx, + recruit_arm_prevalence, + shared_control, + ctrl_ratio +) +} +\arguments{ +\item{arm_structure_mx}{Logical matrix of recruitment arms by treatment arm} + +\item{recruit_arm_prevalence}{Data frame with sets of prevalences, in +columns, for each arm (rows)} + +\item{shared_control}{TRUE if all treatment arms share the +same control arm; FALSE if each treatment arm has its own +control. Defaults to TRUE.} + +\item{ctrl_ratio}{Ratio of patients assigned to treatment versus control} +} +\value{ +arm_prevalence_ar Array of prevalences, recruitment arms * +(treatment arms + control arms) * prevalence sets +} +\description{ +Make array with the prevalences by treatment arm, recruitment arm and +prevalence set +}