top of page
Search
Dummy variables in SAS
It is difficult to create indicator or dummy variables from factor variables in SAS programming language. The macro below assumes an...
Gunnar Hellmund Laier
Aug 28, 20171 min read
2 views
0 comments
A multigroup comparison of IRR using a modified Fleiss’ Kappa statistic
Inter rater reliability (IRR) among more than two raters may be calculated using a modified Fleiss’ Kappa. I suggest a modified version...
Gunnar Hellmund Laier
Jun 18, 20171 min read
1 view
0 comments
NORDCAN – incidences and numbers
Below components to a R-script, which will extract age-gender specific rates and proportions from Nordic databases divided by year and...
Gunnar Hellmund Laier
Jun 11, 20173 min read
1 view
0 comments
Creating dummy variables in R
Randy Zwitch has a blog entry on creation of dummy variables from factor levels. example as.data.frame(c("A", "A", "B", "F", "C", "G",...
Gunnar Hellmund Laier
Apr 9, 20171 min read
1 view
0 comments


Real world split-plot designs
Google Earth picture from a blog on statistics. A real world example near Christchurch (NZ) of a split-plot design. Today things have...
Gunnar Hellmund Laier
Nov 6, 20161 min read
1 view
0 comments


Percentage of Danish newmagazine stories with words ‘Moon’ and ‘Sun’.
Percentage of Danish newmagazine stories with words ‘Moon’ and ‘Sun’ from 1750 until 2014. Source: http://labs.statsbiblioteket.dk/smurf/...
Gunnar Hellmund Laier
Oct 7, 20161 min read
0 views
0 comments


Bar charts in polar coordinates using R package ggplot2
R code providing both an ordinary bar plot and a plot based on polar coordinates. library(RColorBrewer) library(ggplot2) Geography =...
Gunnar Hellmund Laier
Aug 19, 20161 min read
0 views
0 comments


Alder/korrekt århundrede udfra cpr nummer
De fleste, der arbejder med registre eller databaser, står ofte med problemstillingen, at alder er uoplyst, medens cpr-nummer er kendt....
Gunnar Hellmund Laier
Apr 5, 20161 min read
4 views
0 comments


Predicting height from growth curves
My eldest daughter said: I hope my height will improve to become 170cm (5’7”) Let’s have a look at growth curves. Growth accelerates...
Gunnar Hellmund Laier
Mar 27, 20161 min read
1 view
0 comments


Generate indicators in SAS based on factor variables
Generating indicators from factor variable defined in SAS datafile using a generic procedure in three steps. The code is easy to modify...
Gunnar Hellmund Laier
Mar 24, 20161 min read
0 views
0 comments
Recency, Frequency, Monetary (RTF) variable generation using Danish National Health Register data.
Description Below adaptable SAS code for generation of recency, frequency and monetary variables. Algorithm may be applied in a lot of...
Gunnar Hellmund Laier
Feb 26, 20162 min read
1 view
0 comments
Statistics site collection
General recommendations and programming examples: http://support.sas.com/documentation/ (syntax lookup) http://www.ats.ucla.edu/stat/...
Gunnar Hellmund Laier
Feb 13, 20161 min read
0 views
0 comments
Charlson’s Comorbidity Index as SAS Macro
A Canadian version of Charlson’s Comorbidity Index implemented as a SAS macro for application on Danish national register data....
Gunnar Hellmund Laier
Jan 10, 20161 min read
2 views
0 comments
GIT-FTP
http://alexfluger.blogspot.dk/2012/01/easy-deploy-to-ftp-from-git.html
Gunnar Hellmund Laier
Dec 6, 20151 min read
1 view
0 comments
URL parameters
I have used URL parameters a few times for survey reporting. Elements which require custom markup are often more easily defined as...
Gunnar Hellmund Laier
Oct 25, 20151 min read
0 views
0 comments
Frie Danske Data – Danish Online and Live Data Sources
Der er en lang række offentligt tilgængelige datakilder, der på hustands, postnummer, kommunalt og regionalt niveau beskriver borgerne og...
Gunnar Hellmund Laier
Sep 21, 20151 min read
1 view
0 comments


Preparing data. A basic example using R-base
The data editing and formatting phase is one of the most important steps in fitting a structural equation model (SEM), whether it is...
Gunnar Hellmund Laier
Sep 3, 20152 min read
2 views
0 comments


Webscraping with AutoHotKeys and Python
Searching for novel data for a big data Power BI showcase I came accross Bilzonen.dk and Bilbasen.dk. How do we extract data from a site...
Gunnar Hellmund Laier
Jul 1, 20154 min read
0 views
0 comments


Grading with Microsoft Access 2013
Grading more than one hundred hand-ins this weekend. The students get points and acknowledgements. Error correction and handling of rules...
Gunnar Hellmund Laier
Apr 19, 20151 min read
0 views
0 comments
PDF manipulations
2015-05-11: Warning. Cannot be used unchanged with Python3. It is recommended to install pdf, argparse and pyPDF with pip install (set...
Gunnar Hellmund Laier
Mar 29, 20152 min read
1 view
0 comments
bottom of page