mb.validate.data {MBNMAtime}R Documentation

Validates that a dataset fulfils requirements for MBNMA

Description

Validates that a dataset fulfils requirements for MBNMA

Usage

mb.validate.data(data.ab, single.arm = FALSE, CFB = TRUE)

Arguments

data.ab

A data frame of arm-level data in "long" format containing the columns:

  • studyID Study identifiers

  • time Numeric data indicating follow-up times

  • y Numeric data indicating the aggregate response for a given observation (e.g. mean)

  • se Numeric data indicating the standard error for a given observation

  • treatment Treatment identifiers (can be numeric, factor or character)

  • class An optional column indicating a particular class identifier. Observations with the same treatment identifier must also have the same class identifier.

  • n An optional column indicating the number of participants used to calculate the response at a given observation (required if modelling using Standardised Mean Differences)

  • standsd An optional column of numeric data indicating reference SDs used to standardise treatment effects when modelling using Standardised Mean Differences (SMD).

single.arm

A boolean object to indicate whether or not function should allow singe arm studies to be allowed in the network without returning an error. Default is not to allow their inclusion (single.arm=FALSE)

CFB

A boolean object to indicate if the dataset is composed of studies measuring change from baseline (TRUE) or not (FALSE). It is not essential to specify this correctly but failing to do so may lead to warnings.

Details

Checks done within the validation:

Value

An error or warnings if checks are not passed. Runs silently if checks are passed


[Package MBNMAtime version 0.2.4 Index]