Browsed by
Author: jvdl

Significant Figures in SAS

Significant Figures in SAS

For three significant figures, the SAS Institute provides the following code snippet to accomplish the task. However, it is often useful to round to more or less than 3 significant figures. I’ve developed a macro to do so for my own use and am sharing the code below.

NONMEM Dataset Example (free, with R code)

NONMEM Dataset Example (free, with R code)

I’m making available here a basic NONMEM dataset example, along with the R code used to create it. Hopefully it will be helpful to someone in future! CSV download: http://jvdl.me/downloads/nonmem/dummy_nonmem.csv XPT download: http://jvdl.me/downloads/nonmem/dummy_nonmem.xpt

The Man in the Arena

The Man in the Arena

It is not the critic who counts; not the man who points out how the strong man stumbles, or where the doer of deeds could have done them better. The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood; who strives valiantly; who errs, who comes short again and again, because there is no effort without error and shortcoming; but who does actually strive to do the deeds;…

Read More Read More

One-time-pad encryption with R and basic JavaScript

One-time-pad encryption with R and basic JavaScript

One-time-pad encryption offers unbreakable* security if you can guarantee truly random number generation and security of the generated pad. Implementing it from the perspective of a cryptographic layman is a fun way to learn more about it and could add an extra layer of security to your most sensitive communications. I started off by trying to mimic the NSA example above. I eventually settled on a 169 character key (mapped as a 13 x 13 grid) as I struggled to…

Read More Read More

The Grief of One Dog

The Grief of One Dog

Perhaps it was the spirit of the time and the place that affected me. But I assure you no occurrence of any of my other battlefields impressed me so keenly. I halted on my tour to gaze on the spectacle, and to reflect on its meaning. This soldier, I realized, must have had friends at home and in his regiment; yet he lay there deserted by all except his dog… I had looked on, unmoved, at battles which decided the…

Read More Read More