Examining the S factor in US states

Abstract A dataset of 25 diverse socioeconomic indicators for US states was compiled and subjected to factor analysis. Results showed that Washington DC was a strong outlier, but if it is excluded, then the S factor correlated strongly with state IQ (based on NAEP) at .75. Ethnoracial demographics of the states were related to the…

Continue Reading

Two very annoying statistical fallacies with p-values

Some time ago, I wrote on Reddit: There are two errors that I see quite frequently: Conclude from the fact that a statistically significant difference was found to that a significant socially, scientifically or otherwise difference was found. The reason this won’t work is that any minute difference will be stat.sig. if N is large…

Continue Reading

Understanding restriction of range with Shiny!

I made this: https://emilkirkegaard.shinyapps.io/Understanding_restriction_of_range/ Source: # ui.R shinyUI(fluidPage(   titlePanel(title, windowTitle = title),     sidebarLayout(     sidebarPanel(       helpText(“Get an intuitive understanding of restriction of range using this interactive plot. The slider below limits the dataset to those within the limits.”),              sliderInput(“limits”,         label = “Restriction of range”,         min =…

Continue Reading

Installing VIM in R on Mint 17

For data imputation, for simplicity I like to use single imputation instead of multiple imputation. This can easily be done with the VIM package using the irmi command. So, I tried to install VIM in R on Mint 17. However: * installing *source* package ‘robustbase’ … ** package ‘robustbase’ successfully unpacked and MD5 sums checked…

Continue Reading

RCurl in R on Mint 17

So I was installing something (forgot what), and had problems with RCurl: * installing *source* package ‘RCurl’ … ** package ‘RCurl’ successfully unpacked and MD5 sums checked checking for curl-config… no Cannot find curl-config ERROR: configuration failed for package ‘RCurl’ * removing ‘/home/lenovo/R/x86_64-pc-linux-gnu-library/3.1/RCurl’ Warning in install.packages : installation of package ‘RCurl’ had non-zero exit status…

Continue Reading

Java, even worse than PHP!

I’m taking a course in object orientated programming (OOP) at university. I always hated OOP, it seemed like an overly difficult way to doing the stuff I wanted. Now, the course I’m taking is in Java, an old language. It’s even worse than PHP. It’s extremely verbose and lacks even basic high-level functions. There is…

Continue Reading

PHP sucks

Today I had to work with PHP. I’m making a website to gather survey data because Google Forms cannot do what I need to do, e.g. give the user instant response in form of various statistics and figures. 7 months ago I took the PHP course at CodeAcademy but don’t really remember much about it,…

Continue Reading

Simpler way to correct for restriction of range?

Restriction of range is when the variance in some variable is reduced compared to the true population variance. This lowers the correlation between this variable and other variables. It is a common problem with research on students which are selected for general intelligence (GI) and hence have a lower variance. This means that correlations between…

Continue Reading