Category: BERD


Equivalent of SAS Macros in R – Loops and Functions by Courtney Gale

|

If you’re an avid SAS user, you’re likely very familiar with SAS macros. SAS macros are a key component to creating efficient and concise code. Although you cannot use macros in R, R offers other features like functions and loops that can perform the same tasks as SAS macros. Using apply() to loop over variables… Read More

A SAS Macro/R Code Comparison: Generating Multiple Datasets by Tristan Hayes

|

This is a short comparison of SAS and R code in the context of generating multiple datasets. In this example, the mpg dataset from R is used to show how one might use a SAS Macro to subset the data by car class, followed by the R equivalent. You will see that in SAS, the macro… Read More

Julia Debugging Basics by Gregory Farage

|

This is a practical how-to guide on best practices for debugging code in Julia using the Gallium package. We explore two methods: REPL and Juno-Atom. Installation To use the debugger Gallium in Julia 0.6+, the following packages should be installed: Gallium and ASTInterpreter2. julia> Pkg.add(“Gallium”) julia> Pkg.clone(“https://github.com/Keno/DebuggerFramework.jl”) julia> Pkg.clone(“https://github.com/Keno/ASTInterpreter2.jl”) There are two possible ways to debug with Gallium,… Read More

A Quick Recommendation on SAS Setup at UT by Fridtjof Thomas

|

This is a quick guide on the recommended SAS setup for UT users. This is excerpted from a longer guide on software setup and windows 10. SAS 9.4 TSIM3 Large (16GB) download from UT Knoxville This download will take several hours due to its size (zipped file 16GB).  You may want to ask the Biostatistics… Read More

Real Close to the Machine: Floating Point in D | Using Floating Point Without Losing Your Sanity by Dan Clugston [outside article & video]

|

An entertaining look at floating point computation and absurdities that you might encounter if you are not careful. The video is entertaining; the details are in the article. Computers were originally conceived as devices for performing mathematics. The earliest computers spent most of their time solving equations. Although the engineering and scientific community now forms… Read More