>100 Views
November 27, 26
スライド概要
SAS言語を中心として,解析業務担当者・プログラマなのコミュニティを活性化したいです
sARDen: SAS Analysis Results Data Engine A SAS toolkit for CDISC ARS-aligned Analysis Results Data COSA Spotlight Q4 2026 | Yutaka Morioka | EPS Corporation
Speaker Yutaka Morioka SAS Guru, EPS Corporation A SAS programmer based in Japan and clinical data scientist. I actively disseminate SAS programming techniques from introductory to advanced levels and have presented at international and regional conferences including SAS Global Forum, CDISC Interchange Japan, Phuse Japan SDE, and PharmaSUG SDE. As an organizer of the SAS User’s Group in Japan, I also focus on fostering collaboration between SAS and R programmers, aiming to create synergy across both communities.
Analysis Results Data Analysis Results Data (ARD) records the values that support a clinical result. It separates the calculation of results from their presentation in tables, listings, and figures. CDISC ARS provides a model for exchanging those results and their metadata.
Why a result-level data layer matters A statistical output often exists only in a procedure output dataset, a report program, or a final table. That makes reuse, review, and traceability difficult. A common long-format result dataset gives downstream programs one consistent input.
The current R workflow Excluding myself package, five R packages are currently registered under the ARS category. All are closely linked to Analysis Results Data (ARD), supporting the generation, analysis, formatting, or presentation of ARDs. https://clymbclinical.github.io/siera/
The current SAS workflow SAS can calculate every component required for a table. However, each procedure creates a different output structure. Programmers repeatedly reshape those outputs before they can build a display or support review. Procedure step Data step Proc REPORT Proc TABULATE Proc ODSTABLE Etc…
Introducing sARDen sARDen is a SAS package that creates CDISC ARS-aligned, long-format Analysis Results Data. It follows ARD conventions familiar from the pharmaverse cards schema. The package keeps result values, display-ready formats, grouping information, and metadata together. github.com/Morioka-Yutaka/sARDen
ARD structure Each record describes one result in a consistent structure. group1 group1_level variable context stat_name stat fmt_fun TRT01P Drug A AGE summary mean 54.2 1 one result, one record Typical fields also include variable_level, stat_label, and additional group levels.
Core functions in sARDen %sard_summary() creates summary statistics for continuous variables. variable=AGE stat_name=mean stat=54.2 fmt_fun=1 %sard_tabulate() creates counts, denominators, and proportions for categorical variables. stat_name=n BigN p fmt_fun="0" "xx.x" Hierarchical stacking macros create subject-level or event-level results for structures such as AE System Organ Class and Preferred Term. Any event > SOC > PT id= denominator_dataset=
Summary results %sard_summary() converts summaries into ARD-style records. It supports statistics such as N, mean, median, standard deviation, minimum, maximum, and percentiles. It can also standardize externally calculated statistics through statdata=. %sard_summary( group1_level variable stat_name stat fmt_fun Drug A mean 54.2 1 data=ADSL, by=TRT01P, variable=AGE WEIGHTBL, statistic=N MEDIAN MIN MAX MEAN SD, out=sard_summary); AGE
Categorical and hierarchical results %sard_tabulate() produces n, BigN, and p in one long-format result dataset. %sard_stack_hierarchical() supports unique-subject counts across event hierarchies. %sard_stack_hierarchical_count() supports record or event counts when de-duplication by subject is not appropriate. Subject count and event count answer different questions.
Bind multiple ARD datasets into a single ARD Summary ARD %bind_ard() Frequency ARD %bind_ard( indata=Sard_summary_mean Sard_tabulate, outdata=ard_tab_14_1_2_1, Table 14.1.2.1 ARD distinct=Y, drop_sortno=Y );
Metadata with SAS Extended Attributes An ARD needs more than numeric values. sARDen uses SAS Extended Attributes (XATTR) to attach ARDM-like metadata to a result dataset. Result ID, analysis ID, method ID, table ID, result context, and display label stay close to the data they describe. %xrdm_set() ● Result ID ● analysis ID ● method ID ● table ID ● result context ● display label
Introducing sARDenX sARDenX extends sARDen for outputs from SAS statistical analysis procedures. Its goal is to convert procedure-specific output into standardized, ARD-style result data. sARDen provides the common result structure; sARDenX expands the range of analyses that can populate it. github.com/Morioka-Yutaka/sARDenX
Example: two-sample t-test %sard_stats_t_test() runs a two-sample t-test with PROC TTEST. It returns group means, confidence intervals, the test statistic, degrees of freedom, p-value, and analysis settings in a standardized long-format dataset. The macro supports Welch or pooled-variance testing and one-sided or two-sided alternatives. stat_name description data=ADSL, estimate test estimate out=sard_stats_t_test, conf.low lower confidence limit conf.high upper confidence limit alpha=0.05, t test statistic side=2, df degrees of freedom h0=0, p.value p-value %sard_stats_t_test( class=TRT01PN, var=AGE, Welch=Y);
Example: two-sample t-test
Example: Fisher's exact test & Wilcoxon rank-sum test %sard_stats_fisher_test() runs Fisher's exact test through PROC FREQ. %sard_stats_wilcox_test() runs two-sample Wilcoxon rank-sum test through PROC NPAR1WAY.
sARDenX expansion plan The development direction for sARDenX is broader coverage of common clinical analyses. Priority areas include model-based estimates, confidence intervals, contrasts, categorical tests, and time-to-event analyses. Each addition will map procedure output to explicit ARD fields and preserve the analysis method metadata. (New) two-sample Wilcoxon rank-sum test
Introducing sARDenMTS sARDenMTS complements the result-data workflow with metadata and traceability support. It provides a place to manage the links among an analysis, its method, the generated result, and the target display. Together with sARDen and sARDenX, it supports a clearer audit trail from analysis data to reporting output. github.com/Morioka-Yutaka/sARDenMTS github.com/Morioka-Yutaka/sARDenMTS
A connected SAS ecosystem sARDen creates standardized analysis results. sARDenX brings outputs from statistical procedures into that result layer. sARDenMTS strengthens metadata and traceability across analyses and displays. The packages use the SAS Packages Framework and can be distributed as SAS packages.
PharmaForest SAS ecosystem https://github.com/PharmaForest https://pharmaforest.github.io/
Conclusion sARDen provides a SAS-native path to reusable, ARS-aligned Analysis Results Data. sARDenX expands that path to statistical procedure outputs. github.com/Morioka-Yutaka/sARDen sARDenMTS supports the metadata and traceability needed to understand how a result was produced. github.com/Morioka-Yutaka/sARDenX sARDen sARDenX sARDenMTS github.com/Morioka-Yutaka/sARDenMTS github.com/Morioka-Yutaka/sARDenMTS
Thank you! I’d love to hear your questions! Since I may need a little time to give you a thoughtful and accurate answer, please feel free to reach out via LinkedIn after the session. Looking forward to connecting with you! Linkdin