Skip to content

Instantly share code, notes, and snippets.

View fboehm's full-sized avatar

Frederick Boehm fboehm

View GitHub Profile
@fboehm
fboehm / framing-comm.md
Created March 17, 2016 18:54
Framing in communications research

Email from Jessica:

Yeah Fred, frames are a big topic for us, many references are found in published article journals.

Here is an excerpt from a section of lit review for paper I co-wrote:

"Framing theory remains one of the most heavily studied subjects in political communication. As an interdisciplinary theory (Tewksbury & Scheufele, 2009), scholars studying framing recognize that it is impossible to include every detail of every news story. Therefore, journalists often engage in framing, or the “process of culling a few elements of perceived reality and assembling a narrative that highlights connections among them to promote a particular interpretation” (Entman, 1993, p. 164). Frames, or groups of “organized symbolic devices that will interact with individual agents’ memory for meaning construction” (Pan & Kosicki, 1993, p. 58), and their construction/effects are the main foci of this body of research."

Robert Entman is a big name that comes up in framing theory.

@fboehm
fboehm / neural-networks.md
Created April 25, 2016 21:53
Notes for learning Neural Networks
@fboehm
fboehm / lubridate-help.md
Last active January 24, 2017 20:53
Get consecutive dates with R package `lubridate`

When working with dates, I sometimes have counts, say of tweets from a certain account, that don't occur every day. When analyzing these data, it would be helpful to have every date present in my analysis data set, even those dates for which the count is zero. For some time, I didn't know how to do this. I tried:

library(lubridate)
mdy("1/1/2015") -> foo
mdy("1/1/2016") -> bar
foo:bar
@fboehm
fboehm / glossary-latex.md
Last active May 1, 2017 16:23
Using glossaries in LaTeX

I recently wrote a research proposal. I shared it with five professors. One concern is the use of terminology that is specific to genetics. One of my professors didn't have experience with genetics, and, I think, that limited her ability to understand what I wrote. I felt bad about this, and decided that I should have created a glossary for key terms. I see that there is a $$\LaTeX$$ package that, hopefully, makes it easy to create a glossary for a \LaTeX document.

In the future, I expect to use the glossaries package: https://en.wikibooks.org/wiki/LaTeX/Glossary#Using_glossaries

It looks like the glossaries package also allows the definition of acronyms, which would be useful in my writing.

An alternative approach would be to use the format that Edward Tufte uses. This might be the better option, honestly.

I want to think about changing the theme of my site https://fboehm.us/

I'm using yihui/hugo-lithium-theme right now. I'd like to consider other themes.

Features that I like (about yihui/hugo-lithium-theme):

  • Comments for blog posts (via Disqus)
  • google analytics tracking
  • RSS (automatic)

I want to install from source the GEMMA package for mvlmm in genetics studies.

I've cloned the repository. The file GEMMA/Makefile.macosx needs edits.

GEMMA/INSTALL.md lists the dependencies. Since I'm using a mac, I'll try to use homebrew to install these.

GEMMA dependencies

GEMMA runs on Linux and MAC OSX and the runtime has the following dependencies:

I spent a great deal of time trying to tweak the inputs to the function heatmaply::heatmaply() to produce a plot without guides/legends.

An easy solution lies in the function plotly::hide_guides. I just apply plotly::hide_guides() to the output of heatmaply::heatmaply() to get what I want.