trans.armdataP: Transforming arm-specific incidence proportion or survival...

View source: R/trans.armdataP.r

trans.armdataPR Documentation

Transforming arm-specific incidence proportion or survival probability data to arm-level data

Description

The multivariate meta-analysis and meta-regression models used in NMA package require contrast-based summary statistics created by setup function. The setup function requires arm-level data for individual studies. Some studies may only report arm-specific incidence proportion or survival probability data. The trans.armdataP function creates arm-level data that can be used for the setup function. Note the estimated data may not accord to the original data. However, they are solely working pseudo-data, designed so that the contrast-based statistics generated by the setup function accord to the original data. The NMA package tools rely solely on summary statistics for the synthesis analyses, so this is not problematic. If there are relevant covariate data that can used for meta-regression analyses, please edit the output object before entering to the setup function; the output object can be exported to a CSV or Microsoft Excel file. Also, when some studies report only arm-level data, users can combine the data object of arm-based data with the output object of trans.armdataP function.

Usage

trans.armdataP(study,treat,y,SE,data)

Arguments

study

Study ID

treat

Treatment variable of individual arms. It can be formed as both of numbered treatment (=1,2,...) and characters (e.g., "Placebo", "ARB", "Beta blocker").

y

Arm-specific incidence proportion or survival probability estimates.

SE

Standard error estimate of y.

data

A data frame that involves the summary statistics data.

Value

Estimated arm-level event counts and sample sizes are generated. Note the estimated data may not accord to the original data. However, they are solely working pseudo-data, designed so that the contrast-based statistics generated by the setup function accord to the original data. The NMA package tools rely solely on summary statistics for the synthesis analyses, so this is not problematic.

  • study: The ID variable that specifies studies.

  • trt: A variable that specifies treatment categories.

  • d: The estimated number of events (possibly pseudo-data; for dichotomous and survival outcomes).

  • n: The sample sizes.

Examples

data(exdataP)
trans.armdataP(study=study,treat=trt,y=y,SE=se,data=exdataP)

NMA documentation built on Nov. 5, 2025, 7:15 p.m.