Paul Johnson

Landing page for PSYC790, Statistics for Behavioral Sciences I (Regression Analysis).

Previously, I was teaching PSYC650 POLS706 and PSYC90 rolled together into one course. Now these things are separate so life is a little simpler. Sometimes you will run into outdated material and links that don't fit anymore. I'm trying to clean all that up.

Where is Everything?

I keep all my lecture material under the general topical structure in Feel free to dig around in there. I found a Web program called H5ai that allows me to just show the files. No fancy HTML code going on here. This makes it easy for me to rename directories and files without breaking any pages. I am not "beautifying" these files, in other words. See a file, click on it, you can view or download.

Almost all of these are "literate program documents". The R code is woven into the documents raw code, and then the code is processed when the PDF or other output file is produced. The folders include the source code--everything needed to re-do the work. So if you want to revise some lectures for me, feel free. Send a "diff" file with your edits :)

In case you are interested in learning how to write papers that incorporate runable R code, there are 2 ways. I've written an R package called "stationery" and it comes with HOWTO essays about different startegies for doing this. I'll show some examples from time to time. Your choice is to use either Rmarkdown or Sweave to do this. If you want PDF output, for me the choice is clear: Use Sweave. However, other people like Rmarkdown. The overview essay in the stationery package explains.

Are You Well Prepared?

If you think you might like to take the class, but are unsure if you are well prepared, I made a Checklist of topics. I notice now I've not redone that since 2015, and I need to look at it again.

If you have had one or two social science stats and methods courses, I expect you will be ready.

I've gravitated toward computing and computer science over the years. I can help you understand that transition process. It seems to me that many social scientists today can find good careers in modern "data science" if they are willing to learn a bit about programming.

Before the class begins, you should exert yourselves to prepare your personal computers. Whether you use Linux, Macintosh, or Windows, install R (free software), and at least one reasonable editor. If you only have a ChromeOS device, I'm sorry, but I think you need to get a full-sized OS in order to make any progress. Also, if you have an early version of Windows Surface, you are going to have trouble because of limitations on the display.

For an editor, I still use Emacs with ESS to interact with R, but many Windows users do well with Notepad++ (and the NPPTOR plugin). Many Mac users do well with the editor called There is a newer program called "R Studio" which I actively dislike, but I cannot deny it is popular with people under the age of 30.

In the CRMDA at KU (when it existed), we made instructional videos about installing R on Windows and Mac. At the moment, due to forces beyond my control, those documents are not online. I'm trying to get them back. It is possible that, by the time you see this, the guides I wrote for CRMDA will be available in the crmda_guides folder under the R guides. Look for folders "46.windows_R_setup" (the *.ogv file is a video, click to watch in browser) and "47.mac_install".

Years ago, I put up similar video for Windows users on YouTube, but it is not as awesome. In YouTube, I called the serie "Start R". Hopefully, the newer guides will be available (previous paragraph). Ignore part about installing Perl. That's not needed any more.

At the bare minimum, please try to install the R program ( Since "R Studio" is free for the moment, you might as well install that. p

      Name                    Last modified      Size  Description
Parent Directory - archive/ 2020-07-28 08:10 - psyc790/ 2019-11-25 12:39 - Syllabus-2019.pdf 2019-08-25 10:17 194K