PSY562_WK2_2018_.key.pdf

 PSY562_WK2_2018_.key.pdf

B4b800c75ece8682ae6d73d1568b83eb?s=128

Jamie D. Bedics, PHD, ABPP

September 06, 2018
Tweet

Transcript

  1. 1.

    ADVANCED STATISTICS: PSY 562 Week 2 Instructor: Jamie Bedics, PhD,

    ABPP 1 1 PSY562_WK2(2018).key - September 12, 2018
  2. 2.

    WHAT IS R? The most popular statistical language for data

    scientists. 2 R is a programming language and computing environment for data management, data visualization, and statistical analysis. 2 PSY562_WK2(2018).key - September 12, 2018
  3. 4.

    R Studio is an integrated development environment (IDE). 4 R

    STUDIO Provides an appealing visual space for working with R. R runs through R Studio 4 PSY562_WK2(2018).key - September 12, 2018
  4. 6.

    6 They are separate. Update them both separately. R Studio

    is like a nice hat for R 6 PSY562_WK2(2018).key - September 12, 2018
  5. 7.

    WHAT IS R? 7 http://www.statmethods.net/interface/packages.html The directory where packages are

    stored is called the library. Packages are collections of R functions, data, and compiled code in a well-defined format. The library contains functions that we use to run statistics, make graphs, etc. 7 PSY562_WK2(2018).key - September 12, 2018
  6. 8.

    install.packages(“name”) 8 1. Install a package once 2. Install it

    in the console 8 PSY562_WK2(2018).key - September 12, 2018
  7. 9.

    library(name) 9 1. Load the library every time you need!

    2. Load in in the .Rmd file; not in the console 9 PSY562_WK2(2018).key - September 12, 2018
  8. 10.

    update.packages(ask=FALSE) 10 1. Always good to update your packages 2.

    Update in the console only 10 PSY562_WK2(2018).key - September 12, 2018
  9. 11.

    R COMES WITH A STANDARD SET OF PACKAGES. 11 The

    “Comprehensive R Archive Network” (CRAN) is a collection of sites which carry identical material, consisting of the R distribution(s), the contributed extensions, documentation for R, and binaries. Others are available for download and installation. https://stat.ethz.ch/R-manual/R-devel/doc/html/packages.html 11 PSY562_WK2(2018).key - September 12, 2018
  10. 12.

    12 The “Comprehensive R Archive Network” (CRAN) is a collection

    of sites which carry identical material, consisting of the R distribution(s), the contributed extensions, documentation for R, and binaries. https://cran.r-project.org/doc/FAQ/R-FAQ.html#What-is-CRAN_003f The majority of our packages are available for download and installation and not in base R ADDITIONAL PACKAGES 12 PSY562_WK2(2018).key - September 12, 2018
  11. 13.

    13 Submitted (or not) to CRAN for Approval Packages Developed

    by Users Around the world Sent to Different “Mirror” Sites (e.g., univ., etc.) Used by you to do some good! 13 PSY562_WK2(2018).key - September 12, 2018
  12. 16.

    16 install.packages(“”) is like buying your cookbook You don’t buy

    the book every time you want to use it library() is like opening your cookbook recipe function() is running a recipe (i.e., make a graph etc.) SUMMARY: CRAN Mirror is like an Amazon Distribution Center 16 PSY562_WK2(2018).key - September 12, 2018
  13. 18.

    18 What is Version Control? http://phdcomics.com/comics/archive_print.php?comicid=1531 Look familiar?: final.doc final(2).doc

    final(12-15-17).doc final(12-15-17)r.doc final_final.doc A type of software that manages, maintains, and stores your code Like Google Docs but on steroids 18 PSY562_WK2(2018).key - September 12, 2018
  14. 19.

    19 Created by Linus Torvalds the creator of the Linux

    system He was fed up with other systems of version control and thought he could make something better in two weeks. He did. Names products after himself including Linux and now “Git” The most widely used software for version control 19 PSY562_WK2(2018).key - September 12, 2018
  15. 20.

    COMMAND LINE FUNCTIONALITY 20 Yes, it’s moderately horrifying Helpful to

    know some command lines Mac Terminal works PC would need to download Thankfully…. 20 PSY562_WK2(2018).key - September 12, 2018
  16. 21.

    21 GitHub Web hosting version for Git All the functionality

    of Git + More Great place for collaboration and working on teams or in the classroom! 21 PSY562_WK2(2018).key - September 12, 2018
  17. 22.

    22 GitHub is like a nice hat for Git They

    are separate. 22 PSY562_WK2(2018).key - September 12, 2018