%gen_table

This macro is designed to create an output dataset that can be used to produce standard statistical reports.

It allows a high level of customisation and is designed to allow new row types to be added at a later time point.

It also uses metadata entered via Excel see an example

Please see the metadata page for a better explanation

Arguments

Variable name

Description

Example

Type

Default

tableid

Id of the report

Table 2.35

Required

N/A

Groupvars

Grouping variable list

avisit

Required

N/A

datagroups

The datasets that contain the groupvars

adam.adsl

Required

N/A

dpn

Number of decimal places required

1

Optional

1

byvars

By variable list

lbparmcd

Optional

N/A

Byvar_dgs

The datasets that contain the byvars

Adam.adsl

Optional

N/A

trtcd

The treatmeant code variable

cohort

Required

armcd

Trtcd_data

The dataset containing all trtcd values

Adam.adsl

Required

Ana.pop

popdata

The dataset containing the required population

Adam.adsl

Optional

&indata

statproc

The proc method to use to generate the continous statistics

(univariate/means)

means

Required

univariate