<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">

 <title>Alexander Savi</title>
 <link href="https://aosavi.github.io/atom.xml" rel="self"/>
 <link href="https://aosavi.github.io/"/>
 <updated>2026-08-31T13:53:55+00:00</updated>
 <id>https://aosavi.github.io</id>
 <author>
   <name>Alexander Savi</name>
   <email>o.a.savi@gmail.com</email>
 </author>

 
 <entry>
   <title>How to Return Qualtrics Quiz Grades to your MOOC</title>
   <link href="https://aosavi.github.io/blog/qualtrics-lti-grading/"/>
   <updated>2017-07-10T00:00:00+00:00</updated>
   <id>https://aosavi.github.io/blog/qualtrics-lti-grading</id>
   <content type="html">&lt;style&gt;
div {
    text-align: justify;
    text-justify: inter-word;
}
&lt;/style&gt;

&lt;p&gt;You are teaching a MOOC or using a more traditional virtual learning environment (VLE)? You want to enhance your course with external exercises and quizzes? And you want the external tool to return the students’ grades to your MOOC/VLE? Here, I’ll show you how to do it.&lt;/p&gt;

&lt;h2 id=&quot;1-the-qualtrics-lti-bridge&quot;&gt;1. The Qualtrics LTI bridge&lt;/h2&gt;

&lt;p&gt;Qualtrics survey software will enable you to create enhanced questionnaires and quizzes. In order to return the grade from a Qualtrics quiz to the MOOC or VLE of your choice, you’ll first need to make sure to setup the Qualtrics LTI bridge. The following resources will introduce you to the tool and help you set it up:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;A &lt;a href=&quot;/blog/qualtrics-lti-demonstration/&quot;&gt;demonstration&lt;/a&gt; of the bridge, without grade returns. Settings for a demonstration with grade returns are provided below.&lt;/li&gt;
  &lt;li&gt;Detailed &lt;a href=&quot;https://github.com/renspoesse/qualtrics_lti_bridge&quot;&gt;instructions&lt;/a&gt; on setting up the bridge.&lt;/li&gt;
  &lt;li&gt;The &lt;a href=&quot;https://osf.io/q53jx/&quot;&gt;paper&lt;/a&gt; about the bridge.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;2-grading&quot;&gt;2. Grading&lt;/h2&gt;

&lt;p&gt;Now that you’ve got the bridge in place, it’s time to make sure grades can be sent from Qualtrics to your MOOC.  You have two options. Either you assign a fixed grade, for instance to simply see whether a student finished a quiz or questionnaire, or you assign a variable grade, for instance to reflect the proportion correct answers.&lt;/p&gt;

&lt;h3 id=&quot;fixed-grades&quot;&gt;Fixed grades&lt;/h3&gt;

&lt;p&gt;You might just want to know whether a student finished the quiz or questionnaire, without the need to assign a variable grade. You can do this by following the instructions on &lt;a href=&quot;https://github.com/renspoesse/qualtrics_lti_bridge/#setting-up-the-tool-provider-qualtrics&quot;&gt;setting up the tool provider&lt;/a&gt;. By setting &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;custom_grade=1&lt;/code&gt;, Qualtrics will return a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;1&lt;/code&gt; (or 100%) whenever a student finishes the questionnaire or quiz. You can set this value to any value in the range of &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;0.00&lt;/code&gt; to &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;1.00&lt;/code&gt; (which corresponds to 0% to 100% correct).&lt;/p&gt;

&lt;h3 id=&quot;variable-grades&quot;&gt;Variable grades&lt;/h3&gt;

&lt;p&gt;However, in a quiz setting, you’re most likely interested in the proportion correct. Such a variable grade is a little more tricky, but Qualtrics does provide the means to return such a grade:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;Make sure you understand &lt;a href=&quot;https://www.qualtrics.com/support/survey-platform/survey-module/survey-tools/response-management-tools/scoring/&quot;&gt;scoring&lt;/a&gt; in Qualtrics.&lt;/li&gt;
  &lt;li&gt;Set up scoring for your Qualtrics quiz.&lt;/li&gt;
  &lt;li&gt;Make sure you understand &lt;a href=&quot;https://www.qualtrics.com/support/survey-platform/survey-module/survey-tools/response-management-tools/scoring/#MoreInformation&quot;&gt;math operations and embedded data fields&lt;/a&gt; in Qualtrics (follow the link and check the links under More Information).&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Now that you’ve set up scoring and know about math operations and embedded data, it’s time to use this knowledge to create variable grades:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;Go to the Survey Flow of your quiz.&lt;/li&gt;
  &lt;li&gt;If you’ve set up the Qualtrics bridge correctly, you already have a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Set Embedded Data&lt;/code&gt; element.&lt;/li&gt;
  &lt;li&gt;Create another &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Set Embedded Data&lt;/code&gt; element at the end of the Survey Flow.&lt;/li&gt;
  &lt;li&gt;In this element, add a new field and name it &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;custom_grade&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;You can now &lt;a href=&quot;https://www.qualtrics.com/support/survey-platform/survey-module/editing-questions/piped-text/math-operations/&quot;&gt;create your own formula&lt;/a&gt; to calculate the grade for a student. Importantly, make sure the grade cannot exceed the range of &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;0.00&lt;/code&gt; to &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;1.00&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;In the simplest case you can have 10 items, where each correct answer is scored with a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;0.1&lt;/code&gt;. If you let &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;custom_grade&lt;/code&gt; be the score, the grade will automatically reflect the proportion correct.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/assets/scoring.png&quot; alt=&quot;Scoring&quot; /&gt;
&lt;img src=&quot;/assets/survey_flow.png&quot; alt=&quot;Survey Flow&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Now that you have a variable grade, it’s time to make sure you can return it to your MOOC or VLE:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;Add another new field (this time, the name you give it is irrelevant).&lt;/li&gt;
  &lt;li&gt;Set a value for that field, select Insert Piped Text &amp;gt; Embedded Data Field, and insert &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;custom_grade&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;Copy the piped text that just appeared as the new value, most likely &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;${e://Field/custom_grade}&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;You can remove the field with the irrelevant name if you wish, since it won’t be used anymore.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The piped text carries the variable grade and is used by the Qualtrics LTI tool to return it to the MOOC:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;Go to the Survey Options of your quiz and find the Survey Termination Redirect URL.&lt;/li&gt;
  &lt;li&gt;If you’ve set up the Qualtrics bridge correctly, this redirect URL has the value of &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;1&lt;/code&gt; attached to the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;custom_grade&lt;/code&gt; parameter (see instructions on &lt;a href=&quot;https://github.com/renspoesse/qualtrics_lti_bridge/#setting-up-the-tool-provider-qualtrics&quot;&gt;setting up the tool provider&lt;/a&gt;).&lt;/li&gt;
  &lt;li&gt;Replace the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;1&lt;/code&gt; with the piped text, which will most likely result in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;[URL]&amp;amp;custom_grade=${e://Field/custom_grade}&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2 id=&quot;3-returning-grades&quot;&gt;3. Returning grades&lt;/h2&gt;

&lt;p&gt;Of course, you’ll want your MOOC to collect this grade. You can do this by following the instructions on &lt;a href=&quot;https://github.com/renspoesse/qualtrics_lti_bridge/#setting-up-the-tool-consumer-coursera&quot;&gt;setting up the tool consumer&lt;/a&gt;. That is, simply make sure you enable grading callbacks when setting up the LTI item in your MOOC, and optionally, set the return URL.&lt;/p&gt;

&lt;h2 id=&quot;4-a-demonstration&quot;&gt;4. A demonstration&lt;/h2&gt;

&lt;p&gt;Use the instructions from the &lt;a href=&quot;/blog/qualtrics-lti-demonstration/&quot;&gt;demonstration post&lt;/a&gt; and the settings from the image below.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/assets/lti_grading.png&quot; alt=&quot;LTI Configuration&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Happy grading!&lt;/p&gt;
</content>
 </entry>
 
 <entry>
   <title>One-Minute Qualtrics LTI Demonstration for MOOC Teachers</title>
   <link href="https://aosavi.github.io/blog/qualtrics-lti-demonstration/"/>
   <updated>2017-04-03T00:00:00+00:00</updated>
   <id>https://aosavi.github.io/blog/qualtrics-lti-demonstration</id>
   <content type="html">&lt;style&gt;
div {
    text-align: justify;
    text-justify: inter-word;
}
&lt;/style&gt;

&lt;p&gt;An often-heard desire of both MOOC teachers and researchers is the ability to enhance their courses with sophisticated questionnaires. Here, I demonstrate a Qualtrics LTI bridge, that bridges your MOOC environment with the popular survey software Qualtrics, and ensures that the students’ learner IDs are recorded with their responses. Also, the bridge can help you adapt the learning material to particular groups of students, and enable randomized experiments to find out what works best for your students.&lt;/p&gt;

&lt;p&gt;This demonstration will show you how to create the bridge in your learning environment, what it will be like from the viewpoint of the student, and how the additional functionality of Qualtrics (such as a rich variety of question or quiz types, personalized learning, and randomized assignment to different variants) can enhance your course. The demonstration will only take a minute to set up, and a Qualtrics account is not necessary (although it will be as soon as you start using the bridge in your own course).&lt;/p&gt;

&lt;p&gt;In the following three simple steps I will walk you through the demonstration.&lt;/p&gt;

&lt;h2 id=&quot;1-open-your-learning-environment&quot;&gt;1. Open your learning environment&lt;/h2&gt;

&lt;p&gt;Open the learning environment that you use for your course (if you don’t have one, scroll to the bottom of this post). The Qualtrics LTI bridge works with all learning environments that support &lt;a href=&quot;https://en.wikipedia.org/wiki/Learning_Tools_Interoperability&quot;&gt;LTI&lt;/a&gt;. These include the two most popular MOOC providers, edX and Coursera, but also learning management systems like Moodle and Blackboard.&lt;/p&gt;

&lt;h2 id=&quot;2-create-an-lti-item&quot;&gt;2. Create an LTI item&lt;/h2&gt;

&lt;p&gt;In your learning environment, create an ‘LTI item’ (terms may very across environments). Make sure to copy the launch URL, consumer key, and consumer secret from the image below. The image shows how the configuration is done in Coursera.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/assets/lti_demonstration.png&quot; alt=&quot;LTI Configuration&quot; /&gt;&lt;/p&gt;

&lt;p&gt;For demonstration purposes it is not necessary to share your learner ID. Of course, when using the LTI bridge in your own course you do want to share the learner ID, as it will enable you to identify your students’ responses in Qualtrics.&lt;/p&gt;

&lt;h2 id=&quot;3-run-the-demonstration&quot;&gt;3. Run the demonstration&lt;/h2&gt;

&lt;p&gt;Now, publish the item and try it. If your setup is correct, you’ll be directed to a Qualtrics questionnaire that demonstrates some of its most important features. And once your finished with the questionnaire, you’ll be directed back to your learning environment.&lt;/p&gt;

&lt;p&gt;That’s all there is to it!&lt;/p&gt;

&lt;h2 id=&quot;additional-grading&quot;&gt;Additional: grading&lt;/h2&gt;

&lt;p&gt;You want to return the student’s Qualtrics quiz grade to your MOOC? You can. Find out more in the &lt;a href=&quot;/blog/qualtrics-lti-grading/&quot;&gt;next post&lt;/a&gt;.&lt;/p&gt;

&lt;h2 id=&quot;inspired&quot;&gt;Inspired?&lt;/h2&gt;

&lt;p&gt;Are you interested in using the bridge in your own course? It is freely available on &lt;a href=&quot;https://github.com/renspoesse/qualtrics_lti_bridge&quot;&gt;GitHub&lt;/a&gt; and includes detailed instructions on setting it up. The accompanying &lt;a href=&quot;https://osf.io/q53jx/&quot;&gt;paper&lt;/a&gt; that you can cite is available as a preprint, and provides an easy introduction to the bridge. If there’s anything else, contact me.&lt;/p&gt;

&lt;h2 id=&quot;no-mooc&quot;&gt;No MOOC?&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;If you do not have access to a learning environment, but still would like to view the demonstration, you can use &lt;a href=&quot;http://ltiapps.net/test/tc.php&quot;&gt;this website&lt;/a&gt;. Find the ‘registration settings’ field, copy the information from the image above, hit ‘save data’ and then ‘launch TP in new window’. This should take you to the demonstration.&lt;/em&gt;&lt;/p&gt;
</content>
 </entry>
 
 <entry>
   <title>Blending Learning Deliberately&#58; Learning About Networks from Vax!</title>
   <link href="https://aosavi.github.io/blog/blending-learning-deliberately-vax/"/>
   <updated>2016-03-27T00:00:00+00:00</updated>
   <id>https://aosavi.github.io/blog/blending-learning-deliberately-vax</id>
   <content type="html">&lt;style&gt;
div {
    text-align: justify;
    text-justify: inter-word;
}
&lt;/style&gt;

&lt;p&gt;If a heat map of educators’ current favorite innovations would exist, the term &lt;em&gt;blended learning&lt;/em&gt; would probably be red-hot. Although the idea is trivial, it most frequently refers to combining traditional classroom education with digital or online elements, it is nevertheless often poorly understood.&lt;/p&gt;

&lt;h2 id=&quot;deliberate-blending&quot;&gt;Deliberate blending&lt;/h2&gt;
&lt;p&gt;In my view, blending will only benefit learning if it has deliberate utility. That is, if the digital or online tool at hand is aligned with the goals, tasks, and examination of the course. Thus, rather than blending strictly for the sake of for instance moving with the times or cutting costs, the blended elements must deliberately target the insights or skills that the course ultimately demands.&lt;/p&gt;

&lt;h2 id=&quot;the-case-of-vax&quot;&gt;The case of &lt;em&gt;Vax!&lt;/em&gt;&lt;/h2&gt;
&lt;p&gt;It follows that some popular forms of blending, such as the use of lecture videos, do not necessarily promote learning. Deliberate blending on the other hand can be quite effective to attain a course’s goals, even without requiring much effort. To illustrate this, I invite teachers to incorporate a digital or online tool that can be aligned to their course, and ask them to briefly share their experiences. The first is my colleague &lt;a href=&quot;http://sachaepskamp.com/&quot;&gt;Sacha Epskamp&lt;/a&gt;, who generously accepted to use the serious mini-game &lt;em&gt;&lt;a href=&quot;https://vax.herokuapp.com/&quot;&gt;Vax!&lt;/a&gt;&lt;/em&gt; in his course on network analysis in Psychology:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;I used the game &lt;em&gt;Vax!&lt;/em&gt; in my course on network analysis for psychological researchers. The goal of the course is to conceptualize psychological systems such as mental disorders as a network of interacting psychological components: fatigue leads to being tired, which leads to concentrating poorly, which leads to worrying. A disorder then arrises as emergent behavior analogue to the emergence of an epidemic disease on a social network. In this particulair network, I wanted to describe how to quantify which nodes are most important in a network. The game &lt;em&gt;Vax!&lt;/em&gt; let students playfully test for themselves if they can identify these nodes by preventing the outbreak of an epidemic. With this introduction the students immediatly grasped the idea of identifying the importance of central nodes in a network. The game was well received by students and allowed me to energetically start the lecture. Even asking students two years later about the lecture they still remember it well.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The game &lt;em&gt;Vax!&lt;/em&gt;, pictured below, thus helped students to quickly grasp a central property of network models. A different mini-game, called &lt;a href=&quot;http://synonymy-game.com/&quot;&gt;Synonymy&lt;/a&gt;, gives students a similar opportunity by asking them to navigate from one word to another through intermediate synonyms. Both are examples of the type of blending that may indeed benefit learning. And as a bonus, the students have additionally learned to generalize an important property of networks to completely different domains.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/assets/vax.png&quot; alt=&quot;Vax&quot; /&gt;&lt;/p&gt;

&lt;h2 id=&quot;inspired&quot;&gt;Inspired?&lt;/h2&gt;
&lt;p&gt;Are you inspired to deliberately blend your own course? Or do you wish to share a great example of deliberate blending? Please let me know!&lt;/p&gt;
</content>
 </entry>
 
 <entry>
   <title>Evidence-Based Improvements to Coursera Courses Using a Qualtrics Integration</title>
   <link href="https://aosavi.github.io/blog/evidence-based-improvements-to-coursera-with-qualtrics/"/>
   <updated>2016-01-27T00:00:00+00:00</updated>
   <id>https://aosavi.github.io/blog/evidence-based-improvements-to-coursera-with-qualtrics</id>
   <content type="html">&lt;style&gt;
div {
    text-align: justify;
    text-justify: inter-word;
}
&lt;/style&gt;

&lt;p&gt;Most platforms for Massive Open Online Courses (MOOCs) do not allow their lecturers to use randomized controlled experiments to detect evidence-based improvements for their course. Regrettably, because the M in MOOC offers a powerful opportunity to do so. Therefore, in order to make these experiments possible I was elected for the &lt;a href=&quot;http://icto.uva.nl/icto-centraal/uva-grassroots/&quot;&gt;UvA Grassroots program&lt;/a&gt;; a fund for ICT innovations in education. The post below introduces the project (first published in Dutch on the &lt;a href=&quot;http://ict-innovatie.uva.nl/2016/01/27/coursera-qualtrics-een-lti-integratie-uit-de-frontlinie/&quot;&gt;UvA Grassroots blog&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/assets/courseraqualtrics.png&quot; alt=&quot;CourseraQualtrics&quot; /&gt;&lt;/p&gt;

&lt;h2 id=&quot;optimizing-learning-in-moocs&quot;&gt;Optimizing learning in MOOCs&lt;/h2&gt;
&lt;p&gt;The University of Amsterdam partners with Coursera to offer Massive Open Online Courses (MOOCs). MOOCs are free online courses that can be followed by many students at once. Such courses have a few interesting promises. Firstly, the large number of students that follow those courses enable us to reliably investigate the factors that optimize learning. Moreover, the online learning environment allows for extensive customization of the learning experience. Unfortunately, delivering on these promises appears to be far from trivial, and thus in the current Grassroots project &lt;a href=&quot;https://www.coursera.org/instructor/annemarie&quot;&gt;Annemarie Zand Scholten&lt;/a&gt; and I aim to take an important first step.&lt;/p&gt;

&lt;h2 id=&quot;the-tool&quot;&gt;The tool&lt;/h2&gt;
&lt;p&gt;The first phase of that step has been completed. This phase consisted of formally connecting the MOOC provider Coursera with the Qualtrics survey software. We established the connection with the aid of the LTI protocol (i.e., Learning Tools Interoperability), which enables information to be sent from Coursera to Qualtrics. The possibility to return information from Qualtrics to Coursera might be added in the future. The tool that creates the connection, including a user manual, is freely available at &lt;a href=&quot;https://github.com/renspoesse/qualtrics_lti_bridge&quot;&gt;GitHub&lt;/a&gt;.&lt;/p&gt;

&lt;h2 id=&quot;the-possibilities&quot;&gt;The possibilities&lt;/h2&gt;
&lt;p&gt;The link between Coursera and Qualtrics is a first step towards both promises. Qualtrics offers rich opportunities to provide additional material, such as text, video, and questions, but above all the possibility to randomly assign students to different learning materials. The experimental situation thus created enables us to determine which learning material leads to the largest learning gain. Additionaly, because information can be sent from Coursera to Qualtrics, it is in principle possible to personalize the material on the basis of person-specific characteristics. Unfortunately, at the moment both Coursera and the LTI protocol solely offer to communicate the user ID to Qualtrics, so proper personalization is not (yet) possible. Should this change in the future, then the tool can be easily modified such that personalization of the learning material is still possible.&lt;/p&gt;

&lt;h2 id=&quot;the-future&quot;&gt;The future&lt;/h2&gt;
&lt;p&gt;In the second phase of the project the manual will be completed and disseminated such that Coursera lecturers worldwide can use the tool and improve their courses. Furthermore, we consider adapting the tool to enable it to send grades from Qualtrics to Coursera, and we are planning to use the tool within the courses of Annemarie Zand Scholten. Finally, we would like to thank Simon Wiles from Stanford University, who built the &lt;a href=&quot;https://github.com/cognitivesciencelearning/qualtrics_lti_bridge&quot;&gt;foundation of the tool&lt;/a&gt; and made it publicly available, and Rens Poesse from the University of Amsterdam, who adapted the tool for use with Coursera.&lt;/p&gt;
</content>
 </entry>
 
 <entry>
   <title>A/B Tests in Online Learning</title>
   <link href="https://aosavi.github.io/blog/ab-tests-in-online-learning/"/>
   <updated>2015-09-01T00:00:00+00:00</updated>
   <id>https://aosavi.github.io/blog/ab-tests-in-online-learning</id>
   <content type="html">&lt;style&gt;
div {
    text-align: justify;
    text-justify: inter-word;
}
&lt;/style&gt;

&lt;p&gt;A/B tests are not only beneficial in website optimization, but too have great potential in leveraging online learning. In this very (very) brief post on A/B testing in online learning environments, I share some links to interesting online material that collectively may serve as a primer on the topic.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/assets/abtesting_kevindooley.jpg&quot; alt=&quot;Experimental comparisons&quot; /&gt;&lt;/p&gt;

&lt;h2 id=&quot;ab-tests&quot;&gt;A/B tests&lt;/h2&gt;
&lt;p&gt;&lt;a href=&quot;http://www.wired.com/2012/04/ff_abtesting&quot;&gt;A/B tests&lt;/a&gt; are large-scale online randomized controlled experiments. Meaning, an online environment such as a webpage or app is randomly varied (hence A and B) across users, and after some time it is evaluated which variant is most effective. The randomization and large scale make sure alternative explanations are controlled for. Naturally, an A/B-test can be extended to any complexity one desires (e.g., an A/B/n or multivariate test).&lt;/p&gt;

&lt;p&gt;Although superficially the idea is simple and straightforward, proper A/B testing is &lt;a href=&quot;http://www.qubit.com/sites/default/files/pdf/mostwinningabtestresultsareillusory_0.pdf&quot;&gt;far from trivial&lt;/a&gt;. One great way to learn more about it is through the &lt;a href=&quot;https://www.udacity.com/course/ab-testing--ud257&quot;&gt;online course&lt;/a&gt; from Udacity. Also, Ronny Kohavi and his team are some of the few that publish many &lt;a href=&quot;http://www.exp-platform.com&quot;&gt;excellent papers&lt;/a&gt; on A/B testing.&lt;/p&gt;

&lt;p&gt;Others that point out difficulties and propose solutions are for instance &lt;a href=&quot;http://sl8r000.github.io/ab_testing_statistics/&quot;&gt;Slater Stich&lt;/a&gt;, &lt;a href=&quot;http://blog.dominodatalab.com/ab-testing-with-hierarchical-models-in-python/&quot;&gt;Manojit Nandi&lt;/a&gt;, and &lt;a href=&quot;https://www.countbayesie.com/blog/2015/4/25/bayesian-ab-testing&quot;&gt;Will Kurt&lt;/a&gt;.&lt;/p&gt;

&lt;h2 id=&quot;online-learning&quot;&gt;Online learning&lt;/h2&gt;
&lt;p&gt;Large-scale online learning environments provide an excellent opportunity for experimentally optimizing learning gains. A few online educators are known to run A/B tests, such as &lt;a href=&quot;http://duolingo.wikia.com/wiki/Experimental_feature&quot;&gt;DuoLingo&lt;/a&gt; and &lt;a href=&quot;http://bjk5.com/post/10171483254/abingo-split-testing-now-on-app-engine-built-for&quot;&gt;Khan Academy&lt;/a&gt;. However, results are shared only sporadically and informally (e.g., &lt;a href=&quot;http://www.slate.com/articles/technology/technology/2014/01/duolingo_the_free_language_learning_app_that_s_addictive_and_fun.html&quot;&gt;here&lt;/a&gt;, &lt;a href=&quot;http://cs-blog.khanacademy.org/2014/03/ab-testing-curriculum-to-sneak-peek-or.html&quot;&gt;here&lt;/a&gt;, and &lt;a href=&quot;http://www.technologyreview.com/news/515396/as-data-floods-in-massive-open-online-courses-evolve/&quot;&gt;here&lt;/a&gt;), and most of the environments are not available to external academic researchers.&lt;/p&gt;

&lt;p&gt;A notable exception is the intelligent tutoring software ASSISTments. ASSISTments uses a &lt;a href=&quot;https://sites.google.com/site/assistmentstestbed/&quot;&gt;crowdsource model&lt;/a&gt; that enables external researchers to run experiments on the platform. Moreover, massive open online courses (MOOCs) may as well lend itself to A/B tests (e.g., &lt;a href=&quot;http://edx-open-learning-xml.readthedocs.org/en/latest/content-experiments/index.html&quot;&gt;EdX content experiments&lt;/a&gt;), as long as the platform allows and preferably facilitates such tests and one can cooperate with a teacher on the platform. Finally, but unverified, DuoLingo says its crowdsourced course building platform &lt;a href=&quot;http://www.fastcolabs.com/3029531/how-duolingo-uses-a-b-testing-to-understand-the-way-you-learn&quot;&gt;provides A/B testing capabilities&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Interesting work on A/B testing in online learning is for instance done by &lt;a href=&quot;http://www.josephjaywilliams.com/mooclet&quot;&gt;Joseph Williams&lt;/a&gt;; make sure to watch his &lt;a href=&quot;https://youtu.be/gePW63HtV40&quot;&gt;TEDx talk&lt;/a&gt;. I myself am currently setting up A/B tests in &lt;a href=&quot;http://www.mathsgarden.com/&quot;&gt;Math Garden&lt;/a&gt; and a &lt;a href=&quot;https://www.coursera.org/specializations/social-science&quot;&gt;Coursera specialization&lt;/a&gt;. If you’re interested in the topic or wish to cooperate (either in setting up experiments or analyzing its data), feel free to send me a message.&lt;/p&gt;

&lt;hr /&gt;

&lt;p&gt;&lt;span style=&quot;color: #808080;&quot;&gt;Photo: &lt;a style=&quot;color: #808080;&quot; href=&quot;https://www.flickr.com/photos/pagedooley/4289850727/&quot; target=&quot;_blank&quot;&gt;Kevin Dooley&lt;/a&gt; / Flickr&lt;/span&gt;&lt;/p&gt;
</content>
 </entry>
 
 <entry>
   <title>OpenBUGS on Mac OS X</title>
   <link href="https://aosavi.github.io/blog/openbugs-osx/"/>
   <updated>2015-04-21T00:00:00+00:00</updated>
   <id>https://aosavi.github.io/blog/openbugs-osx</id>
   <content type="html">&lt;style&gt;
div {
    text-align: justify;
    text-justify: inter-word;
}
&lt;/style&gt;

&lt;p&gt;Before going through the effort of installing OpenBUGS on a Mac, ask yourself whether you wouldn’t rather want to use &lt;a href=&quot;http://mcmc-jags.sourceforge.net/&quot;&gt;JAGS&lt;/a&gt;, &lt;a href=&quot;http://mc-stan.org/&quot;&gt;Stan&lt;/a&gt;, or the awesome &lt;a href=&quot;https://jasp-stats.org/&quot;&gt;JASP&lt;/a&gt;. If you persist, this quick walk-through should help you out.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/assets/openbugs.png&quot; alt=&quot;OpenBUGS&quot; /&gt;&lt;/p&gt;

&lt;h2 id=&quot;winebottler&quot;&gt;WineBottler&lt;/h2&gt;
&lt;p&gt;&lt;a href=&quot;http://winebottler.kronenberg.org/&quot;&gt;WineBottler&lt;/a&gt; will help you run Windows applications on your Mac. Download the version of WineBottler that is compatible with your operating system (e.g., OS X Yosemite) and install it. If you are unsure about which OS you are running, hit the Apple sign in the top-left corner and choose ‘About This Mac’.&lt;/p&gt;

&lt;h2 id=&quot;openbugs&quot;&gt;OpenBUGS&lt;/h2&gt;
&lt;p&gt;You can now download the &lt;a href=&quot;http://openbugs.net/w/Downloads&quot;&gt;OpenBUGS&lt;/a&gt; ‘Microsoft Windows Download’. As soon as you try to open the executable (.exe), WineBottler will ask you what to do with it (this may take a while as Wine needs to be verified the first time). Choose ‘Convert to simple OS X Application bundle with WineBottler’ and hit ‘Go’.&lt;/p&gt;

&lt;p&gt;You can leave the advanced settings that will pop-up to their defaults and hit ‘Install’. You will then be asked how and where to save the application. Saving it as ‘OpenBUGS’ in your Application folder is probably the most convenient.&lt;/p&gt;

&lt;p&gt;After a while you will be directed to the OpenBUGS setup. Accept the license agreement, leave the subsequent options to their defaults, and hit ‘Install’ once more. As soon as the installation is finished you are asked to select the startfile, which should naturally be the OpenBUGS.exe.&lt;/p&gt;

&lt;p&gt;You are now ready to use OpenBUGS on your Mac. You may either open it from within WineBottler (tab ‘On My Mac’) or directly from your Applications folder (as long as you don’t do both simultaneously). The first time you open OpenBUGS it needs to initialize, so you will have to be patient for a while.&lt;/p&gt;

&lt;p&gt;Finally, be aware that you are now running OpenBUGS in a Windows-like environment, so you’ll for instance need ctrl-C/V rather than cmd-C/V to copy/paste.&lt;/p&gt;

&lt;h3 id=&quot;biems&quot;&gt;BIEMS&lt;/h3&gt;
&lt;p&gt;You can now also easily run &lt;a href=&quot;https://informativehypotheses.wordpress.com/software/biems/&quot;&gt;BIEMS&lt;/a&gt; on your Mac, for (in)equality constrained models. Obtain the version of BIEMS with a Windows user interface, open BIEMS.exe, and choose to run it directly (i.e., do not convert it to a simple OS X Application bundle).&lt;/p&gt;

&lt;h2 id=&quot;uninstall&quot;&gt;Uninstall&lt;/h2&gt;
&lt;p&gt;Want to get rid of OpenBUGS? Make sure to remove it through WineBottler (WineBottler &amp;gt; On My Mac &amp;gt; Remove).&lt;/p&gt;

&lt;h2 id=&quot;troubleshooting&quot;&gt;Troubleshooting&lt;/h2&gt;
&lt;p&gt;If OpenBUGS somehow fails to install or run, there are two options to consider. First check if you are running &lt;a href=&quot;https://developer.apple.com/xcode/downloads/&quot;&gt;Xcode&lt;/a&gt; (hit CMD-spacebar and search for it) and either download it from Apple’s App Store or make sure it is up-to-date (hit the Apple sign in the top-left and choose ‘App Store…’ and ‘Updates’). Second, if you still do not succeed you may try to install &lt;a href=&quot;https://www.macports.org/install.php&quot;&gt;MacPorts&lt;/a&gt;. Be warned that installing MacPorts will take a few hours to complete!&lt;/p&gt;
</content>
 </entry>
 
 <entry>
   <title>How Can We Tailor Massive Education to Each Individual Learner?</title>
   <link href="https://aosavi.github.io/blog/how-to-tailor-massive-education/"/>
   <updated>2015-04-02T00:00:00+00:00</updated>
   <id>https://aosavi.github.io/blog/how-to-tailor-massive-education</id>
   <content type="html">&lt;style&gt;
div {
    text-align: justify;
    text-justify: inter-word;
}
&lt;/style&gt;

&lt;p&gt;In 2015 the Dutch government initiated a National Research Agenda, requesting both citizens and scientific, corporate, and societal organizations, to formulate their most pressing questions for the future. The 12000 submitted questions were condensed into the 140 overarching questions that ultimately make up the national research agenda. The post below contains my contribution (first published in Dutch on the website of the &lt;a href=&quot;https://vragen.wetenschapsagenda.nl/vraag/hoe-kunnen-we-in-grootschalig-onderwijs-ieder-individu-persoonlijk-bedienen-en-optimaal-laten&quot;&gt;National Research Agenda&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/assets/futureschool.jpg&quot; alt=&quot;Future school&quot; /&gt;&lt;/p&gt;

&lt;h2 id=&quot;crowded-education&quot;&gt;Crowded education&lt;/h2&gt;
&lt;p&gt;An average classroom or corporate training consists of roughly 25 students/employees. A large lecture may be attended by up to 500 students. Naturally, all these learners desire education that fits them individually, which moreover is a requirement to stay ahead as a knowledge-driven economy. But how do we provide tailor-made education to 25 students in a classroom, or 500 students in a lecture hall?&lt;/p&gt;

&lt;h2 id=&quot;more-questions-than-answers&quot;&gt;More questions than answers&lt;/h2&gt;
&lt;p&gt;Technology is one possible solution: you may for instance think of ‘blended learning’. However, the effectiveness of most technological innovations stays well behind expectations. These developments for instance generally fail to tailor the instructions and feedback, the pace, the difficulty level, or leave alone the specific mode of education, to each individual learner. Moreover, some requirements such as the continuous monitoring of learning processes, and effective learning methods such as frequent testing (see ‘testing effect’), touch sensitive societal issues. Possible alternatives to the use of technology to solve these problems is an area largely unexplored.&lt;/p&gt;

&lt;h2 id=&quot;a-direction-forward&quot;&gt;A direction forward&lt;/h2&gt;
&lt;p&gt;Solving these issues requires an interdisciplinary approach, involving not only pedagogics, didactics, cognitive and developmental psychology, but also artificial intelligence and computer science. Moreover, it may require ‘academic’ schools (parallel to academic hospitals) that enable large-scale controlled experimentation.&lt;/p&gt;

&lt;hr /&gt;

&lt;p&gt;&lt;span style=&quot;color: #808080;&quot;&gt;Photo: &lt;a style=&quot;color: #808080;&quot; href=&quot;https://commons.wikimedia.org/wiki/Category:France_in_XXI_Century_%28fiction%29&quot; target=&quot;_blank&quot;&gt;Wikimedia Commons&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
</content>
 </entry>
 
 <entry>
   <title>Navigating Massive Open Online Courses</title>
   <link href="https://aosavi.github.io/blog/navigating-moocs/"/>
   <updated>2015-02-27T00:00:00+00:00</updated>
   <id>https://aosavi.github.io/blog/navigating-moocs</id>
   <content type="html">&lt;style&gt;
div {
    text-align: justify;
    text-justify: inter-word;
}
&lt;/style&gt;

&lt;p&gt;In today’s issue of Science, Gunter Maris, Han van der Maas, and I, motivate the urgent need to adapt Massive Open Online Courses to the individual learner:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;We agree wholeheartedly with J. Reich that research on the effectiveness of Massive Open Online Courses (MOOCs) must focus on learning rather than mere clicking (“Rebooting MOOC research,” Education Forum, 2 January, p. 34). Our biggest challenge will be figuring out what is most appropriate for an individual student at a given moment.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;img src=&quot;/assets/navigation_markfischer.jpg&quot; alt=&quot;Vax&quot; /&gt;&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;Ideally, a MOOC would work like the GPS navigation device in your car. You tell it where you want to go, it figures out where you are, and it guides you along the most optimal route. Keeping with the analogy, current MOOCs are like having all GPS navigation devices instruct every car driver to turn right at 9:15 on Monday morning.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;blockquote&gt;
  &lt;p&gt;If we can’t adapt teaching and practice to the individual learner, MOOCs will never be more than a digital version of classroom teaching. To personalize the learning experience, we first need a detailed description of what a student already can and cannot do. Such information can be determined by traditional tests or by more powerful methods such as the practice-based trackers that already exist in other domains of online education (&lt;a href=&quot;http://dx.doi.org/10.1016/j.compedu.2011.02.003&quot;&gt;1&lt;/a&gt;). The A/B testing discussed in the Education Forum provides us with ideal methodology to start putting roads on the educational map. Once we gather information about various conditions, we can map each student’s optimal route.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Reprinted with permission. A link to the original Science publication can be found &lt;a href=&quot;/publications&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;

&lt;hr /&gt;

&lt;p&gt;&lt;span style=&quot;color: #808080;&quot;&gt;Photo: &lt;a style=&quot;color: #808080;&quot; href=&quot;http://www.flickr.com/photos/fischerfotos/7454743336/&quot; target=&quot;_blank&quot;&gt;Mark Fischer&lt;/a&gt; / Flickr&lt;/span&gt;&lt;/p&gt;
</content>
 </entry>
 
 <entry>
   <title>Tips on Using the Q&amp;A Platform Piazza in the Classroom</title>
   <link href="https://aosavi.github.io/blog/using-piazza-in-the-classroom/"/>
   <updated>2014-02-24T00:00:00+00:00</updated>
   <id>https://aosavi.github.io/blog/using-piazza-in-the-classroom</id>
   <content type="html">&lt;style&gt;
div {
    text-align: justify;
    text-justify: inter-word;
}
&lt;/style&gt;

&lt;p&gt;Managing out-of-class communication can be time-consuming. After having experimented with different approaches to optimizing communication amongst students and myself, I was elected for the &lt;a href=&quot;http://icto.uva.nl/icto-centraal/uva-grassroots/&quot;&gt;UvA Grassroots program&lt;/a&gt; to explore the educational Q&amp;amp;A platform Piazza. The post below summarizes the lessons I learned from the project, and shares some valuable tips and tricks if you’d like to try it out yourself (first published in Dutch on the &lt;a href=&quot;http://ict-innovatie.uva.nl/2014/02/24/piazza-grassroot/&quot;&gt;UvA Grassroots blog&lt;/a&gt;).&lt;/p&gt;

&lt;iframe width=&quot;640&quot; height=&quot;360&quot; src=&quot;https://www.youtube-nocookie.com/embed/1Min8DscrzA?rel=0&amp;amp;showinfo=0&quot; frameborder=&quot;0&quot; allowfullscreen=&quot;&quot;&gt;&lt;/iframe&gt;

&lt;h2 id=&quot;out-of-class-communication&quot;&gt;Out-of-class communication&lt;/h2&gt;
&lt;p&gt;Over the past two and a half years I tutored sophomore Psychology students in executing and reporting empirical research. Given the intensity of the course, many students wished to communicate with the instructor and with one another, even when not in class. This gave two problems. First, communication between students often went through a closed Facebook environment. Because of this, I had no insight into the problems of the students and I wasn’t able to correct incorrect advice from peers. Moreover, it appeared to promote plagiarism. Second, their communication with me often went through email. This time the students didn’t know what their fellow students asked me, and so I sometimes received the same question twice, while some questions could be perfectly answered by the students themselves. It would thus be great if all online communication would be shared with the whole class, such that the pressure on my mailbox would be lowered, and I would be better able to anticipate the problems of my students.&lt;/p&gt;

&lt;h2 id=&quot;exploring-piazza&quot;&gt;Exploring Piazza&lt;/h2&gt;
&lt;p&gt;Having sought a solution in the form of a mailing group (even more pressure on my mailbox), the use of a forum on either &lt;a href=&quot;http://turnitin.com&quot;&gt;Turnitin&lt;/a&gt; or &lt;a href=&quot;www.blackboard.com&quot;&gt;Blackboard&lt;/a&gt; (very unintuitive for most students), and Facebook (not a professional environment), I decided to try out &lt;a href=&quot;www.piazza.com&quot;&gt;Piazza&lt;/a&gt;. Piazza is a Q&amp;amp;A website, designed to provide a platform for teachers and students for online communication. Piazza is free, very accessible, includes a mobile app, and is already used by many universities. In this post I give some pros and cons, and share some tips for teachers who’d like to start using it. On the Piazza website you may also find more benefits, examples, and a demonstration.&lt;/p&gt;

&lt;h3 id=&quot;benefits&quot;&gt;Benefits&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;All questions, answers, and discussions are stored on a single spot outside your inbox.&lt;/li&gt;
  &lt;li&gt;Accessible to all students and teachers associated with the course.&lt;/li&gt;
  &lt;li&gt;No need to answer the same question twice.&lt;/li&gt;
  &lt;li&gt;Students help one another, the teacher only intervenes when necessary.&lt;/li&gt;
  &lt;li&gt;Private messaging with the teacher.&lt;/li&gt;
  &lt;li&gt;Reward outstanding student contributions.&lt;/li&gt;
  &lt;li&gt;A platform for discussion that is not restricted to in-class.&lt;/li&gt;
  &lt;li&gt;Free to use, including a free mobile app.&lt;/li&gt;
  &lt;li&gt;LaTeX Equation Editor to add mathematical formulas to a question.&lt;/li&gt;
  &lt;li&gt;Intuitive and accessible to use.&lt;/li&gt;
  &lt;li&gt;Create multiple subgroups within a class. The subgroups may only be accessible to some of the students, while the class is still accessible to all students and teachers.&lt;/li&gt;
  &lt;li&gt;Statistics (e.g., which student has contributed the most).&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;disadvantages&quot;&gt;Disadvantages&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;Many students and teachers are unfamiliar with Piazza (unlike email, Blackboard, or Facebook).&lt;/li&gt;
  &lt;li&gt;Piazza therefore requires an initial investment of the teacher, both in instruction and in encouragement (see the tips below to ease this process).&lt;/li&gt;
  &lt;li&gt;It can come on top of other media (although it may also completely replace email, and may be used as a full-blown learning environment such as a Blackboard).&lt;/li&gt;
  &lt;li&gt;Only a fast and proper implementation of Piazza may eliminate the students’ use of closed environments like Facebook.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;tips&quot;&gt;Tips&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;Give a plenary introduction to Piazza, show the students how it works, what you can do with it, and how you want them to use it.&lt;/li&gt;
  &lt;li&gt;Emphasize that in answering a question they always need to cooperate (and that they must therefore edit their peer’s answer).&lt;/li&gt;
  &lt;li&gt;Encourage students to use private messages only if truly necessary.&lt;/li&gt;
  &lt;li&gt;Don’t answer questions asked through email, but refer to Piazza (you can also choose to hide you email address from the students).&lt;/li&gt;
  &lt;li&gt;Use Piazza to make announcements or distribute material.&lt;/li&gt;
  &lt;li&gt;Encourage students to answer one another’s questions, and only intervene if the students can’t come to the correct answer themselves.&lt;/li&gt;
  &lt;li&gt;Reward students for their contribution (you may for instance use the buttons ‘good question’, ‘good note’, or ‘good answer’).&lt;/li&gt;
  &lt;li&gt;Create Folders for different types of questions.&lt;/li&gt;
  &lt;li&gt;Use the Pin feature to put important questions or comments on top of everyone’s list.&lt;/li&gt;
  &lt;li&gt;Use the Poll feature, for instance to find out if there’s any additional material the students would like to see covered in a next lesson.&lt;/li&gt;
  &lt;li&gt;Make sure you indicate in Piazza’s email settings which emails you want to receive.&lt;/li&gt;
  &lt;li&gt;If you’re using subgroups within the class, show the students how they can either ask a question that is only visible to their subgroup, or visible to all students in the class.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;to-conclude&quot;&gt;To conclude&lt;/h2&gt;
&lt;p&gt;Both my students and I were mostly enthusiastic about using Piazza and in future courses I will continue to use it. Since it is a new medium for many, it however requires a small investment. I would thus advise you to seek a medium that best suits your needs. You may for instance compare email, Blackboard, Facebook, Piazza, Edmodo (an alternative to Piazza), and any other option. If Piazza is your final choice, I hope the above tips will help you to keep the investment small and the experience great.&lt;/p&gt;
</content>
 </entry>
 
 <entry>
   <title>R with RStudio and Sublime Text on Mac OS X</title>
   <link href="https://aosavi.github.io/blog/r-osx/"/>
   <updated>2012-01-21T00:00:00+00:00</updated>
   <id>https://aosavi.github.io/blog/r-osx</id>
   <content type="html">&lt;style&gt;
div {
    text-align: justify;
    text-justify: inter-word;
}
&lt;/style&gt;

&lt;p&gt;&lt;a href=&quot;http://www.r-project.org/&quot;&gt;R&lt;/a&gt; is free and open-source software for statistical computing and graphics. Learning how to use R requires effort, but pays accordingly. This quick guide to R on Mac OS X collects some essential information on how to get started and build your first R extension.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/assets/r.png&quot; alt=&quot;R&quot; /&gt;&lt;/p&gt;

&lt;h2 id=&quot;1-how-to-install-and-use-r&quot;&gt;1. How to install and use R&lt;/h2&gt;

&lt;h3 id=&quot;11-install-r&quot;&gt;1.1 Install R&lt;/h3&gt;
&lt;p&gt;Download and install the latest version of &lt;a href=&quot;http://cran.r-project.org/bin/macosx/&quot;&gt;R&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;After opening R you may run into &lt;a href=&quot;http://stackoverflow.com/questions/9689104/installing-r-on-mac-warning-messages-setting-lc-ctype-failed-using-c&quot;&gt;this&lt;/a&gt; error message. As a remedy go to your Mac’s Terminal and enter:&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;defaults write org.R-project.R force.LANG en_US.UTF-8
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;12-use-an-editor&quot;&gt;1.2 Use an editor&lt;/h3&gt;
&lt;p&gt;You can use R’s own console, but you won’t regret something more fancy.&lt;/p&gt;

&lt;h4 id=&quot;121-rstudio&quot;&gt;1.2.1 RStudio&lt;/h4&gt;
&lt;p&gt;It is probably most convenient to use the free and open source &lt;a href=&quot;http://www.rstudio.com/&quot;&gt;RStudio&lt;/a&gt; IDE for R. Just &lt;a href=&quot;http://www.rstudio.com/products/rstudio/download/&quot;&gt;download&lt;/a&gt;, install, and use it.&lt;/p&gt;

&lt;h4 id=&quot;122-sublime-text&quot;&gt;1.2.2 Sublime Text&lt;/h4&gt;
&lt;p&gt;If Sublime Text is your favorite editor, here’s how you can set it up. First install &lt;a href=&quot;https://www.sublimetext.com/&quot;&gt;Sublime Text&lt;/a&gt;, if you haven’t done so already, and install &lt;a href=&quot;https://packagecontrol.io/installation&quot;&gt;Package Control&lt;/a&gt;, a package manager for Sublime Text.&lt;/p&gt;

&lt;p&gt;Open Sublime and hit CMD-Shift-P, type &lt;em&gt;install&lt;/em&gt;, and choose ‘Package Control: Install Package’. Search for ‘R-Box’ and install it. Repeat this step for ‘R-snippets’ and ‘SublimeREPL’. You can now start an R session in Sublime by going to Tools &amp;gt; SublimeREPL &amp;gt; R.&lt;/p&gt;

&lt;p&gt;Finally you need to make sure that any R syntax you run from within Sublime is sent to the R session in Sublime: hit CMD-Shift-P again, type &lt;em&gt;rbox&lt;/em&gt;, and choose ‘R-Box: Choose Program’. Select ‘SublimeREPL’. Now simply hit CMD-Enter on a line of R code to send it to the Sublime R session.&lt;/p&gt;

&lt;h3 id=&quot;13-learn-to-use&quot;&gt;1.3 Learn to use&lt;/h3&gt;
&lt;p&gt;&lt;a href=&quot;http://cran.r-project.org/doc/manuals/R-intro.pdf&quot;&gt;An Introduction to R&lt;/a&gt; – The official introductory manual and a great reference.&lt;br /&gt;
&lt;a href=&quot;http://cran.r-project.org/doc/contrib/Paradis-rdebuts_en.pdf&quot;&gt;R for Beginners&lt;/a&gt; – A manual for beginners of R.&lt;br /&gt;
&lt;a href=&quot;http://duncanjg.files.wordpress.com/2008/11/rcoursedraft1.pdf&quot;&gt;R for Absolute Beginners&lt;/a&gt; – A manual for absolute beginners of R.&lt;br /&gt;
&lt;a href=&quot;http://stats.lse.ac.uk/penzer/CS.html#materials&quot;&gt;Computational Statistics&lt;/a&gt; – Excellent lecture notes from a course on R.&lt;br /&gt;
&lt;a href=&quot;http://www.springerlink.com/content/978-0-387-79054-1#section=215103&amp;amp;page=1&quot;&gt;Introductory Statistics with R&lt;/a&gt; – A free online book by Peter Dalgaard.&lt;/p&gt;

&lt;h3 id=&quot;14-get-help&quot;&gt;1.4 Get help&lt;/h3&gt;
&lt;p&gt;&lt;a href=&quot;http://cran.r-project.org/manuals.html&quot;&gt;R manuals&lt;/a&gt; – All official manuals for R.&lt;br /&gt;
&lt;a href=&quot;http://www.rseek.org/&quot;&gt;RSeek&lt;/a&gt; – A search engine for R.&lt;br /&gt;
&lt;a href=&quot;http://www.cheat-sheets.org/#R&quot;&gt;Cheat sheet&lt;/a&gt; – Two reference cards for R.&lt;br /&gt;
&lt;a href=&quot;http://www.statmethods.net/&quot;&gt;Quick-R&lt;/a&gt; – Great online reference for R.&lt;br /&gt;
&lt;a href=&quot;http://stackoverflow.com/questions/tagged/r&quot;&gt;StackOverflow&lt;/a&gt; – Excellent forum for posting questions about R.&lt;/p&gt;

&lt;h2 id=&quot;2-how-to-build-an-r-package&quot;&gt;2. How to build an R package&lt;/h2&gt;

&lt;h3 id=&quot;21-set-up&quot;&gt;2.1 Set up&lt;/h3&gt;
&lt;p&gt;Source the functions that should be included in your package. It is good practice to write each function in a separate file and give the file and function the same appropriate name. To source the functions, either open the files in &lt;a href=&quot;http://www.rstudio.com/ide/&quot;&gt;RStudio&lt;/a&gt; and source them using the source-button, or use the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;source()&lt;/code&gt; function.&lt;/p&gt;

&lt;p&gt;Now build the skeleton of your package:&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;package.skeleton(list = c(&quot;functionNameA&quot;, &quot;functionNameB&quot;, &quot;functionNameC&quot;), name = &quot;packageName&quot;)
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Find your package skeleton in a directory named after your package in your current working directory. Use the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;getwd()&lt;/code&gt; function if you don not remember what your current working directory is.&lt;/p&gt;

&lt;h3 id=&quot;22-write-supporting-files&quot;&gt;2.2 Write supporting files&lt;/h3&gt;
&lt;p&gt;The skeleton includes a &lt;em&gt;DESCRIPTION&lt;/em&gt; and &lt;em&gt;NAMESPACE&lt;/em&gt; file, and a &lt;em&gt;man&lt;/em&gt; (hosting the manuals) and &lt;em&gt;R&lt;/em&gt; (hosting the functions) directory. Optionally, you may add a &lt;a href=&quot;http://cran.fhcrc.org/doc/manuals/R-exts.html#Data-in-packages&quot;&gt;&lt;em&gt;data&lt;/em&gt; directory&lt;/a&gt;, which you may use to include an .Rdata-file for instance.&lt;/p&gt;

&lt;p&gt;First open and update the &lt;em&gt;DESCRIPTION&lt;/em&gt; file. This file should be self-explanatory, but instructions and an example can be found &lt;a href=&quot;http://cran.r-project.org/doc/manuals/R-exts.html#The-DESCRIPTION-file&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Second open and update the &lt;em&gt;NAMESPACE&lt;/em&gt; file. Read the &lt;a href=&quot;http://cran.fhcrc.org/doc/manuals/R-exts.html#Package-namespaces&quot;&gt;manual&lt;/a&gt; for instructions, and have a look at this &lt;a href=&quot;http://cran.fhcrc.org/doc/manuals/R-exts.html#An-example&quot;&gt;example&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Finally make sure you write the manual files. Consider using any of &lt;a href=&quot;http://svn.r-project.org/R/trunk/doc/KEYWORDS&quot;&gt;these&lt;/a&gt; keywords in your manual.&lt;/p&gt;

&lt;p&gt;As these steps might not be trivial the first time, consider having a look at someone else’s package. &lt;a href=&quot;http://cran.r-project.org/web/packages/&quot;&gt;Find&lt;/a&gt; a package, download and open the &lt;em&gt;packageName_versionNumber.tar.gz&lt;/em&gt; file, and open the package files to see how it should be done.&lt;/p&gt;

&lt;h3 id=&quot;23-build-package&quot;&gt;2.3 Build package&lt;/h3&gt;
&lt;p&gt;You may now build the package. Open the Terminal (Applications &amp;gt; Utilities &amp;gt; Terminal) and run (fill in the right names and omit the stars):&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;cd /Users/*...*/*parent_directory_of_package_directory*/  
R CMD build *packageName*  
R CMD check *packageName*
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Be sure to use the correct directory and name of your package. If necessary solve the encountered problems, which are described in the &lt;em&gt;00install.out&lt;/em&gt; file in the &lt;em&gt;packageName.Rcheck&lt;/em&gt; directory. Build and check your package until it is ready for use. Your package is called &lt;em&gt;packageName_versionNumber.tar.gz&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;If you wish to submit your package to CRAN, please refer to the &lt;a href=&quot;http://cran.fhcrc.org/doc/manuals/R-exts.html#Submitting-a-package-to-CRAN&quot;&gt;manual&lt;/a&gt;.&lt;/p&gt;

&lt;h3 id=&quot;24-get-help&quot;&gt;2.4 Get help&lt;/h3&gt;
&lt;p&gt;Simple yet more extensive guidelines can be found &lt;a href=&quot;http://www.bioconductor.org/developers/package-guidelines/&quot;&gt;here&lt;/a&gt; and &lt;a href=&quot;http://personality-project.org/r/makingpackages.html&quot;&gt;here&lt;/a&gt;. For specific help read through the &lt;a href=&quot;http://cran.fhcrc.org/doc/manuals/R-exts.html&quot;&gt;complete manual&lt;/a&gt;.&lt;/p&gt;

&lt;h2 id=&quot;3-how-to-use-r-on-the-go&quot;&gt;3. How to use R on the go&lt;/h2&gt;
&lt;p&gt;&lt;a href=&quot;http://support.rstudio.org/help/kb/faq/creating-a-portable-version-of-rstudio-for-a-usb-drive&quot;&gt;RStudio Portable&lt;/a&gt; – Run RStudio from USB.&lt;br /&gt;
&lt;a href=&quot;http://www.rstudio.com/ide/server/&quot;&gt;RStudio Server&lt;/a&gt; – Run RStudio from a server.&lt;/p&gt;
</content>
 </entry>
 
 <entry>
   <title>LaTeX on Mac OS X</title>
   <link href="https://aosavi.github.io/blog/latex-osx/"/>
   <updated>2012-01-17T00:00:00+00:00</updated>
   <id>https://aosavi.github.io/blog/latex-osx</id>
   <content type="html">&lt;style&gt;
div {
    text-align: justify;
    text-justify: inter-word;
}
&lt;/style&gt;

&lt;p&gt;&lt;a href=&quot;http://www.latex-project.org/intro.html&quot;&gt;LaTeX&lt;/a&gt; is a very powerful language for writing documents. Unfortunately, making sure you can work with LaTeX and exploit its full potential can be quite cumbersome. To my best knowledge, a guide for quickly preparing your system for the use of LaTeX and some of its important extensions is currently not available. This quick guide to LaTeX on a Mac is targeted at first time users and is meant as an aid to minimize the amount of effort it takes to prepare your system, and to maximize the time you can use to (learn to) write beautiful documents and conduct &lt;a href=&quot;http://www.bepress.com/bioconductor/paper2/&quot;&gt;reproducible research&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Update: &lt;a href=&quot;https://www.sharelatex.com/&quot;&gt;ShareLaTeX&lt;/a&gt; has evolved into a very accessible yet powerful online editor. It’s free (up to a certain extent), and enables you to work from anywhere, explore your document history, collaborate with ease, sync to Dropbox/GitHub, and use tons of templates. It even allows you to knit some R into your documents. Worth a try!&lt;/p&gt;

&lt;p&gt;Update 2: &lt;a href=&quot;www.overleaf.com&quot;&gt;Overleaf&lt;/a&gt; offers a service similar to that of ShareLaTeX.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/assets/latex.png&quot; alt=&quot;LaTeX&quot; /&gt;&lt;/p&gt;

&lt;h2 id=&quot;1-how-to-install-and-use-latex&quot;&gt;1. How to install and use LaTeX&lt;/h2&gt;

&lt;h3 id=&quot;11-set-up&quot;&gt;1.1 Set up&lt;/h3&gt;
&lt;p&gt;Download and install the latest &lt;a href=&quot;http://www.tug.org/mactex/&quot;&gt;MacTeX&lt;/a&gt; distribution. This distribution contains everything you need to start typesetting beautiful documents. To check whether LaTeX was installed correctly, open the Terminal (Applications &amp;gt; Utilities &amp;gt; Terminal) and run:&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;pdflatex
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This should return the message &lt;em&gt;This is pdfTeX&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;We might also update the packages used by LaTeX and update the &lt;a href=&quot;http://tug.org/texlive/tlmgr.html&quot;&gt;TeX Live package manager&lt;/a&gt; itself:&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;sudo tlmgr update –self
sudo tlmgr update –all
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;sudo&lt;/code&gt; command is used to run the update as an administrator, which is necessary because MacTeX installs as root, and the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;tlmgr&lt;/code&gt; command calls the package manager. You might be asked to provide the administrator password of your Mac. Notice that nothing is shown while typing it, but it is registered nonetheless.&lt;/p&gt;

&lt;p&gt;Now download and install &lt;a href=&quot;http://cran.r-project.org/bin/macosx/&quot;&gt;R&lt;/a&gt; and &lt;a href=&quot;http://rstudio.org/download/desktop&quot;&gt;RStudio&lt;/a&gt;. RStudio is a graphical user interface for R, but also supports LaTeX and Sweave. Although it is not necessary to use RStudio (MacTeX includes its own editor, TeXShop), we will do so as it comes with many great features, such as syntax highlighting (watch the screencast on RStudio’s website). Please note however that TeXShop is more stable and is sometimes preferred to compile a document.&lt;/p&gt;

&lt;h3 id=&quot;12-learn-to-use&quot;&gt;1.2 Learn to use&lt;/h3&gt;
&lt;p&gt;Read the excellent but &lt;a href=&quot;http://tobi.oetiker.ch/lshort/lshort.pdf&quot;&gt;not so short introduction to LaTeX&lt;/a&gt;, and print the &lt;a href=&quot;http://www.cheat-sheets.org/saved-copy/latexsheet.pdf&quot;&gt;cheat sheet&lt;/a&gt;. Open RStudio or TeXShop and start fooling around with everything you’ve just learned. In RStudio choose File &amp;gt; New &amp;gt; TeX Document, and once you have completed a document compile it by hitting the &lt;em&gt;Compile PDF&lt;/em&gt; button (Shift-Cmd-I). In TeXShop hit &lt;em&gt;Typeset&lt;/em&gt; to compile a document (Cmd-T).&lt;/p&gt;

&lt;p&gt;A lot of reference material is available, such as the great &lt;a href=&quot;http://en.wikibooks.org/wiki/LaTeX&quot;&gt;Wikibook&lt;/a&gt; or a more specialized &lt;a href=&quot;http://sites.google.com/site/tomlodewyckx/downloads&quot;&gt;tutorial on how to construct graphical models in LaTeX&lt;/a&gt;.&lt;/p&gt;

&lt;h3 id=&quot;13-templates-and-examples&quot;&gt;1.3 Templates and examples&lt;/h3&gt;
&lt;p&gt;Explore LaTeX’s possibilities by trying some &lt;a href=&quot;http://www.math.duke.edu/computing/tex/templates.html&quot;&gt;examples&lt;/a&gt;. Just open the .tex files with RStudio or TeXShop, edit them if you want, and compile them to watch the result. Remember to compile it a few times if your document is not rendered correctly the first time.&lt;/p&gt;

&lt;h2 id=&quot;2-how-to-write-an-apa-style-6-paper-in-latex&quot;&gt;2. How to write an APA style (6) paper in LaTeX&lt;/h2&gt;

&lt;h3 id=&quot;21-set-up&quot;&gt;2.1 Set up&lt;/h3&gt;
&lt;p&gt;To install the &lt;em&gt;apa6&lt;/em&gt; package open the Terminal (Applications &amp;gt; Utilities &amp;gt; Terminal) and run:&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;sudo tlmgr install apa6
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;If you run into an error you may need to update the package manager (see 1.1). Make sure the package is successfully installed:&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;tlmgr show apa6
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Installing other packages works the same way, just replace &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;apa6&lt;/code&gt; by the name of the other package.&lt;/p&gt;

&lt;p&gt;In order to manage your bibliography and refer to articles properly, you need to prepare your system for &lt;em&gt;biblatex&lt;/em&gt; and &lt;em&gt;biber&lt;/em&gt;. These are relatively new packages, but are supposed to become the new standard for reference management in LaTeX.&lt;/p&gt;

&lt;p&gt;Follow the instructions in the most preferred answer to the question in this &lt;a href=&quot;http://tex.stackexchange.com/questions/38348/in-texshop-is-there-a-directive-to-select-biber-or-bibtex-on-a-per-document-bas&quot;&gt;link&lt;/a&gt; (the one that asks you to make a file called TeXShopBib.sh). Moving the file to the proposed directory can be done by opening the Terminal (Applications &amp;gt; Utilities &amp;gt; Terminal) and running:&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;open /usr/texbin
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Copy the TeXShopBib.sh script to this folder. Go back to the Terminal again and run:&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;sudo chmod +x /usr/texbin/TeXShopBib.sh
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Now complete the instructions in the above &lt;a href=&quot;http://tex.stackexchange.com/questions/38348/in-texshop-is-there-a-directive-to-select-biber-or-bibtex-on-a-per-document-bas&quot;&gt;link&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Download and install &lt;a href=&quot;http://jabref.sourceforge.net/&quot;&gt;JabRef&lt;/a&gt;. With JabRef you will be able to manage all your references. To activate BibLaTeX mode go to Options &amp;gt; Preferences &amp;gt; Advanced and tick BibLaTeX mode.&lt;/p&gt;

&lt;p&gt;Make sure you can easily import references through &lt;a href=&quot;http://scholar.google.nl/&quot;&gt;Google Scholar&lt;/a&gt;. Open Google Scholar, go to &lt;em&gt;Settings&lt;/em&gt; in the top right of the website, set the &lt;em&gt;Bibliography Manager&lt;/em&gt; to &lt;em&gt;Show links to import citations into BibTeX&lt;/em&gt;, and hit &lt;em&gt;Save&lt;/em&gt;. Now search for an article, hit &lt;em&gt;Import into BibTeX,&lt;/em&gt; save the text, and follow the instructions in this &lt;a href=&quot;http://www.youtube.com/watch?v=0ZlQ1NjLNNw&quot;&gt;video&lt;/a&gt;. Once you have stored some articles in JabRef, save the .bib file in the folder where you keep the .tex file you want to use the references in.&lt;/p&gt;

&lt;p&gt;Finally make sure to add the line below in the first twenty lines of your TeX document:&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;% !BIB TS-program = biber
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Do not forget to select BibTeX and hit Typeset (Shift+CMD+B), before selecting LaTeX and hitting Typeset (Shift+CMD+L), to create your APA style 6 document in TeXShop.&lt;/p&gt;

&lt;p&gt;You can also use RStudio, but remember to run biber in TeXShop (Shift+CMD+B) every time you add new references to your document. Fix warnings if there are any, before compiling your document in RStudio.&lt;/p&gt;

&lt;h3 id=&quot;22-learn-to-use&quot;&gt;2.2 Learn to use&lt;/h3&gt;
&lt;p&gt;Read the documentation for &lt;a href=&quot;http://jabref.sourceforge.net/documentation.php&quot;&gt;JabRef&lt;/a&gt; and the &lt;a href=&quot;http://mirror.ctan.org/macros/latex/contrib/apa6/apa6.pdf&quot;&gt;apa6 package&lt;/a&gt; manual. Keep the &lt;a href=&quot;http://mirrors.ctan.org/macros/latex/contrib/biblatex/doc/biblatex.pdf&quot;&gt;BibLaTeX&lt;/a&gt; manual for reference.&lt;/p&gt;

&lt;h3 id=&quot;23-templates-and-examples&quot;&gt;2.3 Templates and examples&lt;/h3&gt;
&lt;p&gt;Get instant satisfaction by compiling an excellent &lt;a href=&quot;http://www.tug.org/texlive/devsrc/Master/texmf-dist/doc/latex/apa6/samples/shortsample.tex&quot;&gt;short example&lt;/a&gt; or &lt;a href=&quot;http://www.tug.org/texlive/devsrc/Master/texmf-dist/doc/latex/apa6/samples/longsample.tex&quot;&gt;long example&lt;/a&gt;. Do not forget to download the &lt;a href=&quot;http://www.tug.org/texlive/devsrc/Master/texmf-dist/doc/latex/apa6/samples/bibliography.bib&quot;&gt;bibliography&lt;/a&gt; and &lt;a href=&quot;http://www.tug.org/texlive/devsrc/Master/texmf-dist/doc/latex/apa6/samples/Figure1.pdf&quot;&gt;figures&lt;/a&gt; to the same folder.&lt;/p&gt;

&lt;h2 id=&quot;3-how-to-handle-r-output-in-latex&quot;&gt;3. How to handle R output in LaTeX&lt;/h2&gt;
&lt;p&gt;&lt;em&gt;NB: you might want to check out &lt;a href=&quot;http://yihui.name/knitr/&quot; title=&quot;knitr&quot;&gt;knitr&lt;/a&gt; before starting to use Sweave.&lt;/em&gt;&lt;/p&gt;

&lt;h3 id=&quot;31-set-up&quot;&gt;3.1 Set up&lt;/h3&gt;
&lt;p&gt;Download the &lt;a href=&quot;http://cran.r-project.org/contrib/extra/scripts/Sweave.sh&quot; title=&quot;sweave.sh&quot;&gt;Sweave.sh&lt;/a&gt; shell script. Now open the Terminal (Applications &amp;gt; Utilities &amp;gt; Terminal) and run:&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;open /usr/local/bin
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Copy the Sweave.sh script to this folder. Go back to the Terminal again and run:&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;sudo chmod +x /usr/local/bin/Sweave.sh
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;When using TeXShop as your editor, you need to specify the location of the Sweave.sh script. Go to TeXShop &amp;gt; Preferences…, click the Misc tab, and type in the Personal Script &amp;gt; LaTeX Program field:&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;/usr/local/bin/Sweave.sh -ld
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;32-learn-to-use&quot;&gt;3.2 Learn to use&lt;/h3&gt;
&lt;p&gt;Make sure to read the excellent &lt;a href=&quot;http://tug.org/pracjourn/2008-1/zahn/zahn.pdf&quot;&gt;Learning to Sweave in APA Style&lt;/a&gt;. The official &lt;a href=&quot;http://www.stat.uni-muenchen.de/%7Eleisch/Sweave/Sweave-manual.pdf&quot;&gt;manual&lt;/a&gt; could come in handy as well, and you might want to read &lt;a href=&quot;http://pineda-krch.com/2011/01/17/the-joy-of-sweave/&quot;&gt;The Joy of Sweave&lt;/a&gt;.&lt;/p&gt;

&lt;h3 id=&quot;33-templates-and-examples&quot;&gt;3.3 Templates and examples&lt;/h3&gt;
&lt;p&gt;Open an &lt;a href=&quot;http://www.stat.umn.edu/%7Echarlie/Sweave/foo.Rnw&quot;&gt;example&lt;/a&gt; in RStudio, edit it if you want, and compile it. Make sure to install the R package &lt;em&gt;xtable&lt;/em&gt;, which is required for running the particular R code in this example.&lt;/p&gt;

&lt;p&gt;Another &lt;a href=&quot;http://www.stat.uni-muenchen.de/%7Eleisch/Sweave/example-1.Snw&quot;&gt;example&lt;/a&gt; (remove the line &lt;em&gt;library(ctest)&lt;/em&gt; before compiling). Yet another &lt;a href=&quot;http://www.stat.uni-muenchen.de/%7Eleisch/Sweave/example-2.Snw&quot;&gt;example&lt;/a&gt;.&lt;/p&gt;

&lt;h2 id=&quot;4-how-to-make-a-presentation-in-latex&quot;&gt;4. How to make a presentation in LaTeX&lt;/h2&gt;

&lt;h3 id=&quot;41-set-up&quot;&gt;4.1 Set up&lt;/h3&gt;
&lt;p&gt;Make sure the packages &lt;em&gt;beamer&lt;/em&gt;, &lt;em&gt;pgf&lt;/em&gt;, and &lt;em&gt;xcolor&lt;/em&gt; are installed:&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;tlmgr show beamer
tlmgr show pgf
tlmgr show xcolor
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;If not, install them:&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;sudo tlmgr install beamer
sudo tlmgr install pgf
sudo tlmgr install xcolor
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;42-learn-to-use&quot;&gt;4.2 Learn to use&lt;/h3&gt;
&lt;p&gt;The &lt;a href=&quot;http://www.ctan.org/tex-archive/macros/latex/contrib/beamer/doc/beameruserguide.pdf&quot;&gt;beamer user guide&lt;/a&gt; is a must read and excellent reference. Soon more.&lt;/p&gt;

&lt;p&gt;Scientific posters can be made using the &lt;a href=&quot;http://www-i6.informatik.rwth-aachen.de/%7Edreuw/latexbeamerposter.php&quot;&gt;beamerposter&lt;/a&gt; package.&lt;/p&gt;

&lt;h3 id=&quot;43-templates-and-examples&quot;&gt;4.3 Templates and examples&lt;/h3&gt;
&lt;p&gt;Examples abound: &lt;a href=&quot;http://mirrors.ctan.org/macros/latex/contrib/beamer/examples/a-conference-talk/beamerexample-conference-talk.tex&quot;&gt;conference talk&lt;/a&gt;, here, here, and here. Soon more.&lt;/p&gt;

&lt;p&gt;And templates for your own use: &lt;a href=&quot;http://mirrors.ctan.org/macros/latex/contrib/beamer/solutions/conference-talks/conference-ornate-20min.en.tex&quot;&gt;conference talk&lt;/a&gt;, &lt;a href=&quot;http://mirrors.ctan.org/macros/latex/contrib/beamer/solutions/short-talks/speaker_introduction-ornate-2min.en.tex&quot;&gt;short talk&lt;/a&gt;, &lt;a href=&quot;http://mirrors.ctan.org/macros/latex/contrib/beamer/solutions/generic-talks/generic-ornate-15min-45min.en.tex&quot;&gt;generic talk&lt;/a&gt;.&lt;/p&gt;

&lt;h2 id=&quot;5-how-to-collaborate-on-latex-documents&quot;&gt;5. How to collaborate on LaTeX documents&lt;/h2&gt;
&lt;p&gt;Use &lt;a href=&quot;https://www.sharelatex.com/&quot;&gt;ShareLaTeX&lt;/a&gt;, &lt;a href=&quot;https://www.overleaf.com/&quot;&gt;Overleaf&lt;/a&gt;, or &lt;a href=&quot;https://weavr.co.uk/&quot;&gt;Weavr&lt;/a&gt; to share your documents, collaborate on them, or just have easy access anywhere. You can even TeXify your email by using &lt;a href=&quot;http://alexeev.org/gmailtex.html&quot;&gt;GmailTeX&lt;/a&gt;.&lt;/p&gt;
</content>
 </entry>
 

</feed>
