• New Research Report series

    In the research program Strategies for improved work longevity from an employer- and employee perspective which I work in we have started a Research Report Series, in which I am an editor together with Mikael Stattin. We actually started this series a year ago, but have yet only produced one issue. The Reports will be…

  • Open education resource

    I am about to upload videos I have made for teaching and education. I will upload my videos on odysee.com, on this channel. You are welcome to watch and comment on the content. I do this in accordance to Open Education Resources (OER).

  • Pipes in R

    I started using R long before RStudio were a thing. In fact, the reason I started to useEmacs was because of ESS (Emacs Speaks Statistics). Emacs was a so to say IDE for Rstatistics. If I had started using RStudio I may not have not been using Emacs at all now.When I started using R…

  • Perceptions of Class Conflicts

    In this blog post I will investigate peoples perception of class conflicts in Sweden between 1992 and 2009. The data I am going to use is International Social Survey Project (ISSP). The data is free to download — but you need to register. Data can be found here: https://www.gesis.org/en/issp/home. To investigate class conflicts is interesting…

  • Motivation and organisations

    A really interestong youtube video about motivation and organisation (and some Linux):

  • Emacs config

    I have upgraded my emacs-config to make it easer for others to use it. It can be downloaded from my gitlab repo. I will include a file setting everything up, but it is of course still possible to do everything manual, or just be inspired by the configs. It is still work in progress and…

  • Ave-command i R statistics

    Imaging you have some data on unemployment: In the data we have some NA. We want to replace these based on the mean of cntry. This can be done using the ave-command (from R-base):  We can actually base the new data on both the mean from cntry and the mean from size. Amazing!

  • Save plots using ggplot2

    This is how you save plots to hard-drive when using gglpot. Using 300 dpi as resolution should be enough for publication. You have to give the height and width (five is good but use what fits you). You don’t need to scale it down to 0.8.

  • Nextcloud on CentOS — host your own cloud

    A lot of use cloud services. Cloud services can be used to sync between devices, but is also good for cooperation with colleagues. Most of us use clouds own by others, such as Google drive, Box or Dropbox. I for myself prefer to handle the cloud myself. In my opinion it should be easy to…

  • Family Orientation in eight countries — a moment with R

    In the last post I investigated the development of individualism in several countries, with the aim to investigate if individualism is something recent in Sweden. I used an indicator which I am rather sceptical about — the relation between importance of friends and family. The more important friends are related to the family the more…

Got any book recommendations?