The goal of this post is to explain how to use general linear model in Python and C. It is assumed that the reader has basic understanding of the regression inference. Introduction Why are we using Python and C in this example? Python code is often said to be an “executable pseudocode”, i.e., Python syntax is relatively easy to read […]
What is ANCOVA?
In a broad term, analysis of covariance (ANCOVA) is equivalent to multiple linear regression. However, there is a difference in the context in which these two approaches are utilized.
macOS configuration
The collection of macOS tips and configuration settings. Change default Python version Follow the instructions from Matthew Broberg’s and Moshe Zadka’s post. In short: Cmd+arrows to jump word By default Cmd+right/left arrow sends you to end/binning of the line. The default keybind for jumping only one word is option+arrows, which is completely unusable (it is easier to use cmd). How […]
PsychoPy – a basic example
PsychoPy is an excellent tool for preparing psychological experiments in Python. However, it seems that entry-level examples one can find in the web are rather sophisticated. Hence, I prepared this basic example featuring: Installing PsychoPy on Linux Displaying a simple stimulus Simplest possible keyboard event Installing PsychoPy on Linux Open a terminal (5 Ways to Open a Terminal Console Window […]
When plain Bash is not enough
I recently read an excellent introductory Bash tutorial on Dev.to by Sahil Bondre. It is a really great tutorial on shell scripting basics, but I remember when I was beginning my adventure with shell scripting and I became fascinated with Bash. In fact, I was a bit over-fascinated with it. With my neuroimaging scripts becoming more and more complex, I […]