sas
COMPUTE
CALL DEFINE
RTF control strings
unicode
first
missing
if
countw
%sysfunc
%scan
filename
PROC IMPORT
DEFINE
PROC REPORT
Chang's collection of working examples. Tables are styled in SAS ODS RTF
and PROC REPORT
.
Add a table of contents for tables[1].
Put the first sentence in bold typeface[2]
Bold the first sentence and use superscript[3].
Use two-layer spanned header[4].
Create three-layer spanned header[5].
Use italic or superscript text as a shorthand[6].
Add colored horizontal lines to split groups[7]
Add blank lines to split groups[8].
Add superscript letters to indicate levels of statistical significance[9]. Superscript a indicates p value between 0.001 and 0.01. Superscript b indicates p value < 0.001.
Conditionally highlight selective columns based on values of a column[10].
Conditionally bold rows based on values of a column[11].
Keep rows with missing values and sort the data by a variable’s unformatted values[12].
Export SAS tables to an Excel file[13]
MISSING
option in the PROC REPORT.DEFINE variable/ order order=internal
^{style [fontweight=bold]
to the beginning and }
at the end\cfn
Specify foreground color; n means color code (1=black,2=blue). I haven't ask Cynthia where to look up color code nSAS code | Symbol |
---|---|
'^{unicode 2192}' | ARROW, RIGHTWARDS |
'^{unicode beta}' | Greek beta |
'^{sub xy}' | xy |
'^{unicode 2713}' | check |
'{style[fontstyle=italic]h}{unicode 00B2}' | h2 |
'^{unicode chi}^{unicode 00B2}' | X2 |
D:\Now\library_genetics_epidemiology\slave_NU\NU_analytical_programs_tables\NU4tabSup01_exposure-effect-on-outcome_SNP-effect-estimates.sas
D:\Now\library_genetics_epidemiology\slave_NU\NU_analytical_output\NU4_tableSupplementary_byDate\MR1_tableSupp_2018-09-06.rtf
D:\Now\library_genetics_epidemiology\slave_NU\NU_analytical_output\NU4_tables_byDate\NU4_tables_2018-09-10.rtf
SAS script file at D:\Now\library_genetics_epidemiology\Chang_PhD_thesis\scripts\master-file_supplementary-tables.sas
↩︎
SAS script path
D:\Now\library_genetics_epidemiology\Chang_PhD_thesis\SAS-supp-table-scripts\Ch2_tabSup01_count-twin-pairs_binary-outcomes.sas ↩︎
SAS script path
D:\Now\library_genetics_epidemiology\Chang_PhD_thesis\SAS-supp-table-scripts\Ch3_tabSup03_fixed-effect-etimates-GSCAN-PRSs-on_illicit-drug-AU-CU-QIMR19Up.sas ↩︎
SAS script file at D:\Now\library_genetics_epidemiology\Chang_PhD_thesis\SAS-supp-table-scripts\Ch3_tabSup03_fixed-effect-etimates-GSCAN-PRSs-on_illicit-drug-AU-CU-QIMR19Up.sas
↩︎
SAS script file at D:\Now\library_genetics_epidemiology\slave_NU\NU_analytical_programs_tables\NU4tab06_MR-leave-one-out-analysis_results.sas
↩︎
SAS script file at D:\Now\library_genetics_epidemiology\Chang_PhD_thesis\SAS-supp-table-scripts\Ch5_tabSup01_GWAS-sample-size-prevalence_LDSC-SNP-heritability-estimates.sas
↩︎
SAS script file at D:\Now\library_genetics_epidemiology\Chang_PhD_thesis\SAS-supp-table-scripts\Ch2_tabSup01_count-twin-pairs_binary-outcomes.sas ↩︎
SAS script file at D:\Now\library_genetics_epidemiology\Chang_PhD_thesis\SAS-supp-table-scripts\Ch2_tabSup02_1VarBin_basiAssum_difLL_significance.sas
↩︎
SAS script file at D:\Now\library_genetics_epidemiology\Chang_PhD_thesis\SAS-supp-table-scripts\Ch2_tabSup03_1VarCon_basiAssum_difLL_significance.sas
↩︎
SAS script file at D:\Now\library_genetics_epidemiology\Chang_PhD_thesis\SAS-supp-table-scripts\Ch3_tabSup03_fixed-effect-etimates-GSCAN-PRSs-on_illicit-drug-AU-CU-QIMR19Up.sas
↩︎
SAS script files at D:\Now\library_genetics_epidemiology\Chang_PhD_thesis\SAS-supp-table-scripts\Ch5_tabSup02_two-sample-MR-results_non-cannabis-initiation_as_exposure_or_outcome.sas
D:\Now\library_genetics_epidemiology\Chang_PhD_thesis\SAS-supp-table-scripts\Ch5_tabSup03_odds-ratio_exposure-UKB-CCPD-ESDPW-PYOS_outcome-ICC-CI_MR-sensitivity-analyses.sas
↩︎
SAS script file at D:\Now\library_genetics_epidemiology\slave_NU\NU_analytical_programs_tables\NU4tab06_MR-leave-one-out-analysis_results.sas
↩︎
SAS script file path
D:\z_old_files\national_inpatient_sample\NIS_analytical_programs\NIS_101_export_tables.sas ↩︎