Profile

Cover photo
Sacha Epskamp
Works at University of Amsterdam
5,196 views
AboutPosts

Stream

Sacha Epskamp

Shared publicly  - 
 
My paper about the semPlot #Rstats  package  (http://sachaepskamp.com/semPlot) has been accepted into the journal Structural Equation Modeling!!
5
2
Reza Farrahi M's profile photoMattias Villani's profile photoMahmoud Shehadeh's profile photo
 
Congratulations! 

Sacha Epskamp

Shared publicly  - 
 
Uploaded the last slides on my introductory course to LaTeX, which is about reproducible research and Sweave. With this the full material is now online:

http://sachaepskamp.com/latex-course

#rstats #LaTeX
1
Sacha Epskamp's profile photoYihui Xie's profile photoAndrew Redd's profile photo
5 comments
 
I forgot to mention: LyX has native support for Sweave; here is the manual I maintain for the LyX team https://github.com/downloads/yihui/lyx/sweave.pdf In short, you can use a tool which looks like Word (better, I should say) but is essentially LaTeX, and you no longer need to be buried in TeX code, since you can see everything (headings, math expressions, graphics, ...).

Sacha Epskamp

Shared publicly  - 
 
Loving #rstats 2.14 so far. Every package now has a NAMESPACE and I just ran a testrun of R CMD Sweave --pdf and saw that it not only included pdflatex but also bibtex and cleaned up afterwards :o
1
Joshua Wiley's profile photo
 
Namespaces really are nice. Cleared up a couple of headaches for me with overlapping object names.

Sacha Epskamp

Shared publicly  - 
 
Wrote a small #rstats package yesterday that only does one thing: Extract from an object gotten through a statistical test the statistic, df and p-value and print it in LaTeX format:

http://cran.r-project.org/web/packages/swst/index.html

As I said, very small: It is mainly aimed to lure R and LaTeX beginners in the wonderfull world of Sweave. If you have any ideas or any code snippets to extract the information of a certain class please let me know and I'll put you on the author list (if you want).
1
Sacha Epskamp's profile photoYihui Xie's profile photoAleksandar Blagotić's profile photoAndrew Redd's profile photo
10 comments
 
Thanks. Changed it to use S3 methods and roxygen. Ill put it on GitHub tonight:)

Sacha Epskamp

Shared publicly  - 
 
Second slides for my course on #LaTeX online:

http://sachaepskamp.com/latex-course
1
Aleksandar Blagotić's profile photo
 
me thinks that Zotero and/or Mendeley should also be mentioned in this context. I'm not sure about Mendeley, since I mostly use Zotero because of the Firefox plugin, but you can extract APA references and export them to BibTeX, which is really nice feature. Not to mention that your references are stored in the cloud, so they're getting synced regularly.

Sacha Epskamp

Shared publicly  - 
4

Sacha Epskamp

Shared publicly  - 
 
Trying out +Yihui Xie 's knitr #rstats package and liking it alot so far! I made a shortcut for emacs using this bash script:

http://sachaepskamp.com/files/knit

which is a modified version of an earlier modified version of +Aleksandar Blagotić 's bash script for Sweave:

http://sachaepskamp.com/files/sweave

Enable them (C-c S for Sweave and C-c D for Knitr) with this in .emacs:


;; Sweave buffer - set global keybinding
(global-set-key (kbd "C-c s")
(lambda ()
(interactive)
(shell-command (concat "sweave " buffer-file-name))))
(global-linum-mode t)

;; Sweave buffer - set global keybinding
(global-set-key (kbd "C-c d")
(lambda ()
(interactive)
(shell-command (concat "knit " buffer-file-name))))
(global-linum-mode t)
2
Dirk Eddelbuettel's profile photoAleksandar Blagotić's profile photoPaul Metzner's profile photo
3 comments
 
A very useful function, thank you! I added two things: 1) knitr blocked Emacs while processing long documents, hence the ampersand in the end; 2) I often forget to save the Rnw buffer before I knit the document, so I inserted the save command.


(global-set-key (kbd "C-c d")
(lambda ()
(interactive)
(basic-save-buffer)
(shell-command (concat "knit " buffer-file-name " &"))))

Sacha Epskamp

Shared publicly  - 
 
I've put a second version of #rstats package swst on GitHub:

https://github.com/SachaEpskamp/swst

Changed it to work with S3methods now. first time I use git so I might screw something up though:)
1
Joshua Wiley's profile photoSacha Epskamp's profile photoAleksandar Blagotić's profile photoAndrew Redd's profile photo
6 comments
 
+Andrew Redd I'd go with, "Snuffbumble, one hopes you speak in facetious drolleries."

Sacha Epskamp

Shared publicly  - 
 
Before I waste time making it, is there an #rstats package that easilly formats and outputs statistical results in #LaTeX code to use in Sweave? Like:

R> somefunction( ttestobject )

resulting in:
"($t(..) = .., p < 0.001$)"
1
Sacha Epskamp's profile photoAleksandar Blagotić's profile photoAndrew Redd's profile photo
4 comments
 
Yes, +Andrew Redd, but xtable is table-only deal, and Hmisc has nice low-level wrappers. Too bad I never actually used them, but they certainly have great potential.

Sacha Epskamp

Shared publicly  - 
 
Any way to make Emacs + ESS R editor work in a shell way. That is, press up to retrieve last command rather than to go up in the window? #rstats
1
Joshua Wiley's profile photo
 
M-p for the previous command M-n for the next. On my machine, it also seems bounds to C-up arrow and C-down arrow (I don't know what the arrows technical name is).
Work
Employment
  • University of Amsterdam
    PhD Student, 2012 - present
  • University of Amsterdam
    Student Assistant, 2009 - 2012
Basic Information
Gender
Male