Thu 07 May 2015

Filed under nerdvana

Here is my custom build system for compiling markdown files including plantuml chunks in sublime-text 3 on Linux.

{ 
    "cmd": ["/home/steve/.cabal/bin/pandoc","--filter","/home/steve/.cabal/bin/pandoc-plantuml-filter","--filter","/home/steve/.cabal/bin/pandoc-citeproc", "-s","--toc","--bibliography=/home/steve/bibtexOK.bib","--template=/home/steve/template.tex","-o", "$file_base_name.pdf", "$file"],
    "selector": "text.pdf.markdown"
}

Obviously you will have to replace the /home/steve parts with your own path which has to include your pandoc installation path, otherwise pandoc will fail when you call it from Sublime Text. Took me a while to figure that out.

This assumes you have a cabal installation of a plantuml filter.

Plantuml makes it really easy to do nice graphics like this:

Alt text
Alt text
Comment

Thu 07 May 2015

Filed under code

Tags r

The problem

I have two one-dimensional frequency tables resulting from say the baseline and endline of a survey, recording say membership of 5 age groups. The levels of the two variables should be the same but they might not be, say if at endline there was no-one in one of ...

Read More

Thu 07 May 2015

Filed under code

Tags r

The problem

In social sciences, variables often have long and informative labels. Mostly they are too long to put into variable names, and often you want to keep short, systematic variable names as well as long labels. I am always messing about with changing the labels.

The solution

Here is ...

Read More

Fri 06 March 2015

Filed under social_research

Tags evaluation research

I only just came across the work of Judea Pearl (which shows how ignorant I am because he won the Turing Prize in 2011). I think his work is sensational and is essential reading for all scientists but in particular for social scientists and evaluators too.

Basically he says that ...

Read More

Sun 09 November 2014

Filed under nerdvana

Tags R reproducibleResearch

Here is my custom build system for compiling rmarkdown files in sublime-text 3 on Linux.

"cmd": ["R", "-e", "library(knitr);rmarkdown::render(input = '$file',output_file = '$file_base_name.pdf')"],
    "selector": "text.html.markdown",
    "path": "/home/steve/.cabal/bin/:/home/steve/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin ...
Read More

Sat 01 November 2014

Filed under mAndE

Tags research evaluation

How to distinguish assumptions and context in logic models? Here is one attempt. It isn’t quite right yet …

Assumptions and context

Assumptions

A potential assumption in a logic model is a variable A, not under our control, e.g. tomorrow's weather in our town, (and a designated value ...

Read More

Fri 03 October 2014

Filed under code

Tags reproducibleResearch opensource zotero

The problem

Every student, researcher and scientist has to read and make notes and highlight or scribble on texts. In long-gone days I spent ages working on Uni literature and making summary charts of what I read, and I really wish I still had some of those notes at my ...

Read More

Fri 03 October 2014

Filed under nerdvana

Tags reproducibleResearch opensource zotero

The problem

Zotero is a really great tool for organising your scientific and professional documents and their citations, and keeping documents and citations together.

Now usually we want to store documents in some kind of hierarchical or tagged structure. Up to now it has been possible to do that either ...

Read More

Wed 10 September 2014

Filed under nerdvana

Tags reproducibleResearch opensource

Wordpress is a great blogging engine. But I spend almost all my time with plaintext files in markdown. Whatever I am working on, from my CV to statistical reports, I have it here on my hard disk and I can compile it as pdf or Word or whatever I feel ...

Read More

Sun 10 August 2014

Filed under resilience

Tags evaluation development

This article is work in progress! Feel free to add a comment. There should be a pdf at this link.

Background and motivation…

Why should we care about resilience?

Self-healing systems - This is what we want!

After the terrible earthquake in Haiti in 2010, billions of dollars of aid money ...

Read More

Wed 11 June 2014

Filed under code

Tags ggplot R reproducibleResearch

Bar charts and histograms are easily to understand. I often write for non-specialist audiences so I tend to use them a lot. People like percentages too, so a bar chart with counts on the y axis but percentage labels is a useful thing to be able to produce.

But how ...

Read More

Tue 10 June 2014

Filed under nerdvana

Tags opensource tech ubuntu

I quite often get asked (and ask myself) what is the best GANTT software for basic use.

Recently we have been comparing a few solutions so here are a couple of quick tips.

If you have a license for Microsoft Project I would use that, though it is a bit ...

Read More

socialdatablog © Steve Powell Powered by Pelican and Twitter Bootstrap. Icons by Font Awesome and Font Awesome More