Code snippets for twitter handle @statsforbios
TeX HTML R Other
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
biomass
differentMLmodels
exploratory
figure
ggplot2
glm
imgs
lastfm
logisticbias
measles
pantheria
rdatasets
testthatPractice
twitterData
worldCup
.gitignore
Icons.json
LICENSE.md
README.md
anovaVswilcox2013-09-05.R
bootstrapRegression13-05-04.R
ecoenginePlot.R
floatingPoint2014-2-28.R
gbifRecords.R
googleViz states with mouseover.R
humanize.R
humans.txt
index.md
infixApplyFunctions2013-09-10.R
jackknifeRegression13-05-04.R
juliaRegression.jl
lmVSanova.Rmd
lmVSanova.md
logisticMap09-04-14.R
neuralNetworkExample2013-09-02.R
powerAnalysis03-10-13.R
quantileRegressionData13-05-04.R
rSymPyExample.R
smoothScatterDemo13-05-04.R
stackedBarVSLines.R
stackedbarvslines.png
studybias.R
surfaceForBanner2013-05-05.R
svmSDMbyblasmbenito09-04-14.R
sympyExample.py
totalLeastSquares2013-09-06.R
treeVsLM.R
tuftePlots.R
waveletAnalysis09-04-14.R

README.md

statsforbios

Code snippets for twitter handle @statsforbios

There is a wiki. Feel free to add to it. I don't really know what it's for but oh well.

If you want to add some snippets or example code or whatever, clone the repo, add your files, then submit a pull requset.

Feel free to use, change copy anything that I have written in this repo, no accreditation needed (though it is always nice..) To be clear, all the R files, images that have been created by me are licensed under The Unlicense. However there is some other stuff in the repo such as my blog style pages and some twitter data etc. I don't own any of that. The balzac jekyll theme is in this repo and is under an MIT license.

Statistical techniques

totalLeastSquares2013-09-06.R

Example total least squares analysis using gx.rma in rgr. Total least squares is a regression method that minimises the error in both x and y coordinates rather than just y.

jackknifeRegression13-05-04.R

140 char jackknife for confidence intervals of a OLS regression.

bootstrapRegression13-05-04.R

Very basic bootstrap of regression with 140 char version and fuller version. Bootstrap is used to calculate confidence intervals for a OLS regression.

neuralNetworkExample2013-09-02.R

Simplest possible neural network analysis (machine learning method) using the nnet package.

powerAnalysis03-10-13.R

Example power analysis. Used to make a plot of the sample size needed for a range of effect sizes. Performed using the pwr package

smoothScatterDemo13-05-04.R

Demonstration of smoothScatter() function that creates and plots a 2D kernel over a cloud of points.

Programming techniques

infixApplyFunctions2013-09-10.R

Messing around with infix functions i.e. 2 + 2 is infix while add(2,2) is not.

[juliaRegression.jl](Jula regression)

Absolute bare bones linear regression and plotting in Julia

[sympyExample.py](SymPy symbolic algebra)

Very basic example of using symbolic algebra in Python with SymPy.

rSymPyExample.R

Computer algebra using SymPy in R via rSymPy.

[floatingPoint2014-2-28.R](floating point problems)

Some examples of why floating points can be dangerous

Analysis I think is interesting

anovaVswilcox2013-09-05.R

Compare power of anova and wilcox tests for a range of n, variance and difference in means.

Plots for various uses

[stackedBarVSLines.R](Stacked bar chart alternatives)

Comparing stacked bar charts with alternatives. Particularly lines charts. Due to this conversation on https://twitter.com/NickGolding/status/407637683830140929

quantileRegressionData13-05-04.R

Just creating a plot of trangle like data that are common in ecology and a useful application of quantile regression. No quantile regression is actually run.

surfaceForBanner2013-05-05.R

The 3D gaussian surface used as my twitter banner. Uses persp in MASS

tuftePlots.R

Example usage of Tufte style themes from ggthemes. Range plot and mimimal bar charts.