A one-day course in using Stata and R together
I am going to be giving this course on 17 August this year. It is organised by my company BayesCamp … Morecontinue reading.
I am going to be giving this course on 17 August this year. It is organised by my company BayesCamp … Morecontinue reading.
The compositional data are proportionals of mutually exclusive groups that would be summed up to the unity. Statistical models for compositional data have been applicable in a number of areas,...continue reading.
(require ‘[huri.core :as h] ‘[clojure.core.matrix.dataset :as d] ‘[incanter.core :as i]) ;; FROM MAP OF ROWS TO MAP OF COLUMNS (def byRow [{:x 1 :y “a”} {:x 2 :y “b”} {:x...continue reading.
This is some unpublished work that I started a few years ago and never finished. Power is the chance that … Morecontinue reading.
Here’s the slides from a talk I gave recently at Stockholm University: “Power Analysis for Longitudinal 2- and 3-Level Models: Challenges and Some Solutions Using the R Package powerlmm”. The...continue reading.
(require ‘[tnoda.rashinban :as rr] ‘[tnoda.rashinban.core :as rc] ‘[clojure.core.matrix.dataset :as dt] ‘[clojure.core.matrix.impl.dataset :as id]) ;; CREATE A TOY DATA (def ds [{:id 1.0 :name “name1”} {:id 2.0 :n…continue reading.
An R programming tutorial by D.M. Wiig This post is contained in a .pdf document. To access the document click on the green link shown below. qgraphpost3continue reading.
(require ‘[ultra-csv.core :refer [read-csv]] ‘[criterium.core :refer [quick-bench]] ‘[clojure.set :refer [index]]) (def ds (read-csv “/home/liuwensui/Downloads/nycflights.csv”)) ;; FASTEST (quick-bench (map (fn [x] {:year (f…continue reading.
(require ‘[clojure.pprint :refer [print-table] :rename {print-table p}] ‘[clojure.set :as s] ‘[clojure.core.reducers :as r]) ;; CREATE TOY DATASETS (def ds1 [{:id 1 :name “name1”} {:id 2 :name “name2”} …continue reading.
If you still follow my Twitter feed – I pity you, as it’s been rather boring of late. Consisting largely of Github commit messages, many including the words “knit to...continue reading.
In the previous post (https://statcompute.wordpress.com/2018/03/16/for-loop-and-map-in-clojure), I did a performance comparison between MAP and FOR loop in Clojure with a small dataset. It is interesting to see that the performance of...continue reading.
Cats are great. Perhaps Hadley Wickham and Lionel Henry think so too given the wonderful choice of name for their purrr package. Hadley Wickham has also created a smartly named...continue reading.
I came across this excellent article lately “Machine learning at central banks” which I decided to use as a basis for a new cheat sheet called Machine Learning Modelling in R. The...continue reading.
My R packge powerlmm 0.2.0 is now out on CRAN. It can be installed from CRAN https://cran.r-project.org/package=powerlmm or GitHub https://github.com/rpsychologist/powerlmm. Changes in version 0.2.0 New features Analytical power calculations now...continue reading.
During my learning of Clojure, I was deeply impressed by the richness of data structures and the built-in support for concurrency, which makes it a perfect programming language for the...continue reading.
; (defproject prj “0.1.0-SNAPSHOT” ; :dependencies [[org.clojure/clojure “1.8.0”] ; [org.clojars.bmabey/csvlib “0.3.6”] ; [ultra-csv “0.2.1”] ; [incanter “1.5.7”] ; [semantic-csv “0.2.1-alpha1”] ; [org.clojure/data.csv “0.1.4”]]) (require ‘[csvlib :…continue reading.
Previous posts in this series on MCMC samplers for Bayesian inference (in order of publication): Bayesian Simple Linear Regression with Gibbs Sampling in R Blocked Gibbs Sampling in R for...continue reading.
;; DEFINE THE DATABASE (def db {:classname “org.sqlite.JDBC” :subprotocol “sqlite” :subname “/home/liuwensui/Downloads/chinook.db”}) ;; CALL PACKAGES (require ‘[clojure.java.jdbc :as j] ‘[criterium.core :as c] ‘[cloju…continue reading.
PubMed Commons, the NCBI’s experiment in comments for PubMed articles, has been discontinued. Thoroughly too, with all traces of it expunged from the NCBI website. Last time I wrote about...continue reading.
In the digital age of today, data comes in many forms. Many of the more common file types like CSV, XLSX, and plain text (TXT) are easy to access and...continue reading.