PsychProject Mac OS

1.1 Installing software

Before we start the course, we have to install three things:

  • R, a free program for statistical programming
  • RStudio, a user interface which makes it easier to work with R; overlook our data, packages and output.
  • Several packages, which are ‘add-ons’ for R with functions to do specific analyses. They also include the documentation (help files) that describes how to use them, and sample data.
  1. First published on TECHNET on May 21, 2013 We have had a quite a few questions on the topic of using a Mac to run Project Online, so I took myself into uncharted territory (for me), acquired a MacBook Pro from our labs, running OS X 10.8.3 and set to work to see what it could do.
  2. Comment by Frank Drebin on Jun. 14, 2018 at 7:55 am. Merlin Project is now available in version 5 and it is imho the MS Project for Mac. So you dont need to work with MS Project, but get a real piece of Mac software, which works seamlessly with Calendar, Contacts and has the ease of use of macOS.
  3. TeamGantt is a browser-based online project management solution, so it’s compatible with any OS, Mac included. Users can plan and manage projects using Gantt charts, as well as invite co-workers, teammates, and friends to view and edit work.


1.1.1 1. Installing R

  • The latest R Version is available here
  • Based on your operating system (Linux, Mac, Windows), click Download.- If you use Windows, click Download R for Windows: Find ‘base’ under subdirectories -> Click ‘install R for the first time’ -> Click Download R 3.6.3 (or another version) for Windows- If you use Mac, click Download R for (Mac) OS X: Find the header ‘Latest release’ -> Click R-3.6.3.pkg (or another version)- If you use Linux, click Download R for Linux: Choose your Linux distribution (debian/, redhat/, suse/, ubuntu/) -> Open the terminal -> Run the installation command

1.1.2 2. Installing RStudio

Mac

Download RStudio on the RStudio Website (Link). It’s free!

1.1.3 3. Installing packages

Psychproject Mac Os Download

Those datapoint dots can be reassembled into narratives that suit the goals of the reassembler. As has been proven in many a grad-school psych project and as sung by Paul Simon in the key of B major, 'A man hears what he wants to hear and disregards the rest.' And there will be many, many dots for those narrative builders to choose from. I'm having issues compiling bigdecimal 1.2.5 on Mac OS X 10.10.1 (14B25). I use rbenv 0.4.0 for managing Ruby. I've uninstalled all my ruby versions and gems to no avail.

As a prerequisite for this guide, you need to have a few essential R packages installed.

  1. Open RStudio
  2. Inside RStudio, find the window named Console on the bottom left corner of your screen (it might fill the entire left side of the screen).
  3. We will now install a few packages using R Code. Here’s an overview of the packages, and why we need them:
PackageDescription
lavaanA sophisticated and user-friendly package for structural equation modeling
ggplot2A flexible and user-friendly package for making graphs
tidySEMPlotting and tabulating the output of SEM-models
semToolsComparing models, establishing measurement invariance across groups
psychDescriptive statistics
foreignLoading data from SPSS ‘.sav’ files
readxlLoading data from Excel ‘.xslx’ files


4. To install these packages, we use the install.packages() function in R. One package after another, our code should look like this:

Don’t forget to put the package names in '. Otherwise, you will get an error message.


1.1.5 Starting a new project in Rstudio

Psychproject Mac Os Catalina

To keep all your work organized, you should use a project. In Rstudio, click on the New project button:

In the pop-up dialog, click New directory, and again New project.

type the desired directory name in the dialog (give it a meaningful name, e.g. “TCSM_course”), and use ‘Browse’ if you need to change the directory where you store your projects. Now, in your project, click File > New file > R script. This script file works just like notepad, or the syntax editor in SPSS: You type plain text, but you can run it any time you want. Conduct all of the exercises in this script file.

Psychproject Mac Os 11

1.1.6 Code conventions

Throughout the guide, a consistent set of conventions is used to refer to code:

  • Functions are in a code font and followed by parentheses, likesum() or mean().
  • Other R objects (like data or function arguments) are in a codefont, without parentheses, like seTE or method.tau.
  • Sometimes, we’ll use the package name followed by two colons, likelavaan::sem(). This is valid R code and will run. The lavaan:: part indicates that the function sem() comes from the package lavaan.

1.1.7 Getting Help

As you start to apply the techniques described in this guide to your data you will soon find questions that the guide does not answer. This section describes a few tips on how to get help.

Psychproject Mac Os X

  1. Every function in R has documentation (a help file). To see it, select the name of the function and press F1, or run the command ? followed by the name of the function, e.g.: ?aov. I have been using R for 10 years, and I still press F1 all the time to see how a function works.
  2. Andy Field, the book used for our undergraduate statistics courses (Field, Miles, and Field 2012), is also available for R. Many basic analyses are explained for R in this book.
  3. If you get stuck, start with Google. Typically, adding “R” to a search is enough to restrict it to relevant results, e.g.: “exploratory factor analysis R”. Google is particularly useful for error messages. If you get an error message and you have no idea what it means, try googling it. Chances are that someone else has been confused by it in the past, and there will be help somewhere on the web. (If the error message isn’t in English,run Sys.setenv(LANGUAGE = 'en') and re-run the code; you’remore likely to find help for English error messages.)
  4. If Google doesn’t help, try stackoverflow. Start by spending a little time searching for an existing answer; including [R] restricts your search to questions and answers that use R.
  5. Lastly, if you stumble upon an error (or typos!) in this guide’s text or R syntax, feel free to contact Caspar van Lissa at c.j.vanlissa@uu.nl.