top of page
Search
Gunnar Hellmund Laier
Aug 28, 20171 min read
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...
2 views0 comments
Gunnar Hellmund Laier
Jun 18, 20171 min read
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...
1 view0 comments
Gunnar Hellmund Laier
Jun 11, 20173 min read
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...
1 view0 comments
Gunnar Hellmund Laier
Apr 9, 20171 min read
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",...
1 view0 comments
Gunnar Hellmund Laier
Nov 5, 20161 min read
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...
1 view0 comments
Gunnar Hellmund Laier
Oct 7, 20161 min read
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/...
0 views0 comments
Gunnar Hellmund Laier
Aug 19, 20161 min read
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 =...
0 views0 comments
Gunnar Hellmund Laier
Apr 5, 20161 min read
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....
4 views0 comments
Gunnar Hellmund Laier
Mar 27, 20161 min read
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...
1 view0 comments
Gunnar Hellmund Laier
Mar 24, 20161 min read
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...
0 views0 comments
Gunnar Hellmund Laier
Feb 26, 20162 min read
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...
1 view0 comments
Gunnar Hellmund Laier
Feb 13, 20161 min read
Statistics site collection
General recommendations and programming examples: http://support.sas.com/documentation/ (syntax lookup) http://www.ats.ucla.edu/stat/...
0 views0 comments
Gunnar Hellmund Laier
Jan 10, 20161 min read
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....
2 views0 comments
Gunnar Hellmund Laier
Dec 6, 20151 min read
GIT-FTP
http://alexfluger.blogspot.dk/2012/01/easy-deploy-to-ftp-from-git.html
1 view0 comments
Gunnar Hellmund Laier
Oct 25, 20151 min read
URL parameters
I have used URL parameters a few times for survey reporting. Elements which require custom markup are often more easily defined as...
0 views0 comments
Gunnar Hellmund Laier
Sep 21, 20151 min read
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...
1 view0 comments
Gunnar Hellmund Laier
Sep 3, 20152 min read
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...
2 views0 comments
Gunnar Hellmund Laier
Jul 1, 20154 min read
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...
0 views0 comments
Gunnar Hellmund Laier
Apr 19, 20151 min read
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...
0 views0 comments
Gunnar Hellmund Laier
Mar 29, 20152 min read
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...
1 view0 comments
bottom of page