Gunnar Hellmund LaierMay 141 minThe power of SAS Proc SGPLOT: Survival PlotsObtaining the power of SGPLOT using ods output features. In the example below I have placed the y-axis label in top horizontal position u...

Gunnar Hellmund LaierDec 17, 20197 minSimulation of hemophilia bleedsA SAS simulation study describing bleeds in hemophilia type A and B patients. Based on the “proof-of-concept study” Randomized, prospecti...

Gunnar Hellmund LaierDec 14, 20191 minSAS University Edition load error solutionUsing SAS University Edition with VirtualBox in Fedora requires kernel signing of 3 modules. Avoid this by disabling Secure Boot in BIOS ...

Gunnar Hellmund LaierDec 3, 20191 minIndicators from numeric factor variablesThe macro call below will generate indicators for all factor levels of xfaktor from the data set regdata represented by at least 5 observ...

Gunnar Hellmund LaierOct 29, 20192 minGraphics in SAS SGPLOT illustrating ANOVA analysis results.Output and graphics from statistical programming packages are often time-consuming to read and interpret. In peer-reviewed publications y...

Gunnar Hellmund LaierOct 29, 20192 minT tests in censored normal distributionT-tests assume normal distributed random variates. We experience designs in which data take on a particular value and are otherwise norma...

Gunnar Hellmund LaierApr 19, 20191 minUp-and-down dose response study designDose response model and biased coin up-and-down design estimating EV90. A simulation study with a boundary condition and addition of auxi...

Gunnar Hellmund LaierMar 10, 20191 minStata Workflow optimization with GRAPHLOGThe basic workflow recommendations for Stata code and folder hierarchy given by Scott Long is relative easy to extend with inclusion of g...

Gunnar Hellmund LaierMar 9, 20191 minSet Exchange Server propertiesGuided by principles in GDPR you may wish to delete mail older than 3 months from your inbox. This should be a principle for all office w...

Gunnar Hellmund LaierFeb 24, 20191 minHalf-whiskers plot of difference in treatment effectBelow an alternative graphical representation of difference in treatment effects. data ests; missing z; infile datalines delimiter=',' MI...

Gunnar Hellmund LaierFeb 22, 20191 minCUSUM plots for operating timeCUSUM plots have seen application within time series and quality analysis. For both numeric, binary, ordinal and polytomous outcomes we o...

Gunnar Hellmund LaierFeb 4, 20198 minComorbidity indexes in SQLGenerating Elixhauser comorbidity index from Danish National Health Register as relational database. (ICD 10 Coding in SAS) A lookup-tabl...

Gunnar Hellmund LaierJan 4, 20192 minProduce animation in R illustrating uniform and Gaussian density#Number of simulations and chunk-size sN <- 265 sM <- 10 #Line from 0 to 1 will be divided into 40 bins bin <- seq(0 + (1 / 40) / 2, 1 - ...

Gunnar Hellmund LaierDec 15, 20182 minPrevalence models in health scienceI chose to divide generic prediction models applied in health science and administration into two main groups: Models based on general ac...

Gunnar Hellmund LaierApr 19, 20181 minIllustrative plots and tables (SAS macro)Basic SAS macros for basic summary statistics and illustrative plots. Features ttests, Van der Waerden and Wilcoxon tests for continuous ...

Gunnar Hellmund LaierDec 28, 20172 minMacro scheme for generation of RFM-I dataRecency, frequency, monetary – interaction (RFM-I) are guiding principles for extracting customer data in the process of generating segme...

Gunnar Hellmund LaierOct 9, 20171 minExtracting variables and estimates from SAS prediction modelsSAS ods output statements provide a simple alternative to advanced text manipulation techniques. The example below extracts selected vari...

Gunnar Hellmund LaierOct 6, 20171 minExtracting selected variables from the hpgenselect procedure using codeSeveral SAS procedures generate code from which the user may extract critical information. In the example below I extract variables selec...

Gunnar Hellmund LaierOct 1, 20172 minModeling gender and age adjusted incidence ratesNational Health Institute (NHI) provides a tool box for calculation of cancer incidence and percentage change. Their algorithm for Jointp...

Gunnar Hellmund LaierAug 28, 20171 minDummy variables in SASIt is difficult to create indicator or dummy variables from factor variables in SAS programming language. The macro below assumes an inte...