Retrieving the COM class factory for component with CLSID…
The error Retrieving the COM class factory for component with CLSID {BEFFC288-C8D8-11D3-B37E-0050DA2C4EB8} failed due to the following error: 80040154 indicates the ClientCOM has not been registered....
View ArticleInternet Explorer 8 is allergic to Windows Repair
Internet Explorer 8 on Windows XP Professional SP3 is allergic to Windows XP Repair, the repair tool on the Windows installation CD-ROM for desperate people with strange Windows problems. Symptoms The...
View ArticleSAS truncates SQL columns to length 1024
At first I thought SAS was giving me errors because the input data was malformed. Before I found data entry operators typing invalid dates such as “3/30/33/2009″ : NOTE: Invalid argument to function...
View ArticleTruncate a file from the command line
Here’s a hack to truncate a file (such as a log) in Linux and Windows. First, let’s cover some related commands. In Linux to create an empty file, run: touch /tmp/foo However, touching a existing file...
View ArticleSending test emails in bulk
CIC 2.4 SU 35 doesn’t work well out of the box for email ACD sites with more than 250 emails in queue at one time. The gist: CIC opens all the emails in the ACD queue simultaneously, but Microsoft...
View ArticleInstall Lexmark X1150 printer driver on Fedora 15
Update (August 7, 2011): Works on Fedora 15 the same as Fedora 13. This guide will walk you through installation of the Lexmark X600 series printer drivers on Fedora 13 (32-bit) and CUPS 1.4.4, and...
View ArticleConfidence interval diagram in R
This code shows how to easily plot a beautiful confidence interval diagram in R. First, let’s input the raw data. We’ll be making two confidence intervals for two samples of 10. In case you curious,...
View ArticlePlotting individual growth charts
This R code draws individual growth plots as shown in “Applied Longitudinal Data Analysis: Modeling Change and Event Occurrence” by Judith D. Singer and John B. Willett, an excellent book on multilevel...
View ArticleComparing continuous distributions with R
In R we’ll generate similar continuous distributions for two groups and give a brief overview of statistical tests and visualizations to compare the groups. Though the fake data are normally...
View Article100% stacked bar chart in SAS’s SGPLOT
A 100% stacked bar chart is useful for comparing the relative frequencies of an m x n table where frequencies in m are very different. While this is easy to do in Excel, SAS requires an extra step,...
View ArticleWord could not create the work file. Check the temp environment variable
Encrypting the Microsoft Windows temporary folder causes Microsoft Outlook 2010 to not open Word file attachments because of these “cryptic” errors: Word could not create the work file. Check the temp...
View ArticleUsing SQLObject with Microsoft SQL Server and Windows Authentication
Here is how to use Windows Authentication to connect to Microsoft SQL Server with SQLObject. Continue reading →
View ArticleOutlook: Trying to Connect
This is how I solved a problem of Microsoft Outlook 2010 "Trying to Connect" for several days. Continue reading →
View ArticlePopup notification from R on Windows
After R is done running a long process, you may need to notify the operator to check the R console and provide the next commands. Without installing any more software or creating any batch files or VBS...
View ArticleGeolocate IP addresses in R
This R function uses the free freegeoip.net geocoding service to resolve an IP address (or a vector of them) into country, region, city, zip, latitude, longitude, area and metro codes. Continue reading →
View ArticleCalculate RMSE and MAE in R and SAS
Here is code to calculate RMSE and MAE in R and SAS. RMSE (root mean squared error), also called RMSD (root mean squared deviation), and MAE (mean absolute error) are both used to evaluate models. MAE...
View ArticleGet free disk space in SAS on Windows
This SAS macro retrieves the amount of free disk space, and puts the value in the SAS log and in a global macro variable. It works with local and remote drives and mapped and UNC paths. To avoid data...
View ArticleBar plot with error bars in R
Here's a simple way to make a bar plot with error bars three ways: standard deviation, standard error of the mean, and a 95% confidence interval. The key step is to precalculate the statistics for...
View ArticleBinomial confidence intervals: exact vs. approximate
This graph and R code compares the exact vs. normal approximations for 95% binomial confidence intervals for n trials with either one success or 50% success. Continue reading →
View ArticlePredicting optimal of iterations and completion time for GBM
When choosing the hyperparameters for Generalized Boosted Regression Models, two important choices are shrinkage and the number of trees. Generally a smaller shrinkage with more trees produces a better...
View Article