Tag Archives: Python

Break, Continue and Pass statements using for loops in Python

In programming, for loops are used to automate repetitive tasks, such as analysing similar datasets from different subjects. Sometimes, a dataset might be slightly different to another such that the data can be used but needs to be analysed differently in the loop. For example, data might have been accidentally sampled at a higher rate, or a nested trial needs

Read more

Add jitter to your figures using Python and R

Scientific figures are at their most informative when they include the individual data used to calculate summary statistics such as means and standard deviations. Why is showing data important? As previously pointed out here and here, figures with means, standard deviations, standard errors, etc. can be misleading and conceal the nature of the underlying data. As highlighted in our previous

Read more
« Older Entries