Skip to content

Instantly share code, notes, and snippets.

View cddesja's full-sized avatar

Chris Desjardins cddesja

  • Saint Michael's College
  • Colchester, Vermont
  • 21:43 (UTC -04:00)
View GitHub Profile
@cddesja
cddesja / gist:8009874
Created December 17, 2013 18:15
CRAN messages
* checking S3 generic/method consistency ... WARNING
profile:
function(fitted, ...)
profile.by.group:
function(x, y, original.names, profile.plot, ...)
profile:
function(fitted, ...)
profile.reliability:
@cddesja
cddesja / gist:8010374
Created December 17, 2013 18:42
Outstanding CRAN issues
* checking R code for possible problems ... NOTE
pbg: warning in axis(1, at = 1:k, lab = labs): partial argument match
of 'lab' to 'labels'
pbg: warning in pf(F1 * (c1 + c2 - k)/(c1 + c2 - 2)/(k - 1), k - 1, (c1
+ c2 - k), lower = F): partial argument match of 'lower' to
'lower.tail'
pbg: warning in pf(F2, 1, (c1 + c2 - 2), lower = F): partial argument
match of 'lower' to 'lower.tail'
pbg: warning in pf(F3 * (c1 + c2 - k + 1)/(c1 + c2 - 1)/(k - 1), (k -
1), (c1 + c2 - k + 1), lower = F): partial argument match of 'lower'
@cddesja
cddesja / gist:8692613
Created January 29, 2014 17:19
IRT 30 January 2014 R code
# ---------------------- #
# IRT workshop 30/1/2014 #
# ---------------------- #
# The pound sign is used to indicate a comment.
# You should use comments a lot! Especially if you don't use
# R very often as it will help you remember what you did last time
# and why.
# You should also use scripts too! This will save you a ton of time
@cddesja
cddesja / index.html
Created December 3, 2014 15:33
Scatterplot
<!doctype HTML>
<meta charset = 'utf-8'>
<html>
<head>
<link rel='stylesheet' href='//tenxer.github.io/xcharts/css/master.css'>
<script src='//d3js.org/d3.v2.min.js' type='text/javascript'></script>
<script src='//tenxer.github.io/xcharts/js/xcharts.min.js' type='text/javascript'></script>
<style>
@cddesja
cddesja / index.html
Created December 3, 2014 15:36
Scatterplot
<!doctype HTML>
<meta charset = 'utf-8'>
<html>
<head>
<link rel='stylesheet' href='//tenxer.github.io/xcharts/css/master.css'>
<script src='//d3js.org/d3.v2.min.js' type='text/javascript'></script>
<script src='//tenxer.github.io/xcharts/js/xcharts.min.js' type='text/javascript'></script>
<style>
@cddesja
cddesja / index.html
Created December 11, 2014 12:02
chart1
<!doctype HTML>
<meta charset = 'utf-8'>
<html>
<head>
<link rel='stylesheet' href='//tenxer.github.io/xcharts/css/master.css'>
<script src='//d3js.org/d3.v2.min.js' type='text/javascript'></script>
<script src='//tenxer.github.io/xcharts/js/xcharts.min.js' type='text/javascript'></script>
<style>
@cddesja
cddesja / index.html
Created December 11, 2014 12:02
chart2
<!doctype HTML>
<meta charset = 'utf-8'>
<html>
<head>
<link rel='stylesheet' href='//cdnjs.cloudflare.com/ajax/libs/nvd3/1.1.15-beta/nv.d3.min.css'>
<script src='//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js' type='text/javascript'></script>
<script src='//d3js.org/d3.v3.min.js' type='text/javascript'></script>
<script src='//cdnjs.cloudflare.com/ajax/libs/nvd3/1.1.15-beta/nv.d3.min.js' type='text/javascript'></script>
<script src='//nvd3.org/assets/lib/fisheye.js' type='text/javascript'></script>
@cddesja
cddesja / index.html
Created December 11, 2014 12:03
chart2
<!doctype HTML>
<meta charset = 'utf-8'>
<html>
<head>
<link rel='stylesheet' href='//cdnjs.cloudflare.com/ajax/libs/nvd3/1.1.15-beta/nv.d3.min.css'>
<script src='//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js' type='text/javascript'></script>
<script src='//d3js.org/d3.v3.min.js' type='text/javascript'></script>
<script src='//cdnjs.cloudflare.com/ajax/libs/nvd3/1.1.15-beta/nv.d3.min.js' type='text/javascript'></script>
<script src='//nvd3.org/assets/lib/fisheye.js' type='text/javascript'></script>
@cddesja
cddesja / introduction_to_R.R
Last active August 29, 2015 14:13
Introduction to R at the University of Akureyri
# Introduction to R
# Christopher David Desjardins
# 12 January 2015
#
# Section 0. Installing R & Rstudio
#
# These are comments. You can run these lines of code (Ctrl + Enter)
# and R will not run them.
# 2 + 2
2 + 2
library(irtoys)
hp <- read.csv("http://cddesja.github.io/classes/e411prma2015-3/data/hp.csv", header = T)[,-7]
mod <- est(hp, model="1PL", engine="ltm", rasch = TRUE)
colnames(mod$est) <- c("Discrimination", "Difficulty", "Guessing")
rownames(mod$est) <- paste("Item", 1:ncol(hp))
print(mod$est)