For the SAS macro, we provide versions of under UNIX and Windows. The SAS macro can invoke the fortran program.

The fortran program can be compiled locally (please see README.md in swdpwr-macro-fortran-source-code) or downloaded from the following links:

Files for Windows:
swdpwr_macro_win.sas 
swdpwr.exe (This can be downloaded from: https://github.com/jiachenchen322/swdpwr/blob/main/swdpwr.exe)

Files for UNIX:
swdpwr_macro_unix.sas 
swdpwr (This can be downloaded from: https://github.com/jiachenchen322/swdpwr/blob/main/swdpwr)

The proper directory to swdpwr should be modified in the *.sas file in line "%let mydir=...". Please also check other paths in the macro in case of any unknown errors.

