Generating a random order for students to select their internships (or anything really)

R script to generate random numbers merged with a list of student names retrieved from Canvas My students have to choose where they want to have their internship in societal psychology. Since some internships seems to be more popular, I make a random list of numbers from 1:number of students which I then merge with the list of student names retrieved from Canvas. This then becomes the order in which the students select their internships.

SDQ Predictive algoritm in R

Adapted from syntax available at the SDQ website. The predictive algorithm is based on up to twelve input variables: phyper = SDQ hyperactivity score from parent SDQ thyper = SDQ hyperactivity score from teacher SDQ shyper = SDQ hyperactivity score from self-report SDQ pconduct = SDQ conduct problems score from parent SDQ tconduct = SDQ conduct problems score from teacher SDQ sconduct = SDQ conduct problems score from self-report SDQ

Building a blogdown publication list from bibtex file (updated)

The best way to do this now is to follow the guide on the following page. I tried to build markdown files to use for publication section of my blog programmatically using r. I came close, but not all the way there. The following code takes a bibtex file, reads it into r, formats the output and splits each citation out to a separate markdown file. Unfortunately, there were som spaces and formatting errors that I was not able to get rid of, so I had to go through some manual cleaning up afterwards.

Ulysses, R, markdown

How-to use Ulysses, Rstudio together (updated) Use Zotero for inserting references in Ulysses manuscript Add YAML, indicate as code-block YAML in Ulysses. --- title: "Title of paper" author: "Tormod Bøe" date: "19 april 2016" output: html_document csl: apa.csl # must be located in same folder as paper css: APAStyle.css # must be located in same folder as paper bibliography: "references".bib # must be located in same folder as paper --- Export as “Text” -> “Markdown” to Rstudio.

Papers using rmarkdown

Introduction Children who grow up in families with poor economy are at increased risk for negative promotionansvarlig developmental outcomes. The three main theoretical frameworks that have been proposed to explain these associations are the family process perspective (underscoring how poor economy influences parental mental health, intrafamily conflict, poor parenting and children’s mental health), the family investment perspective (focusing on the constraints poor economy make on opportunities for making potentially stimulating investments into the famkily which may benefit childrens (especially) cognitive development), and the cumulative stress perspective, suggesting that chidlren in poorer families are exposed to more chaos, unpredictability and instability compare dto their affluent peers, which intereferes with their developmental processes through adverse influencsed on the stress—responsivity system of children [@Evans:2013jl].