5/18/2017

Statistical Method

  • Regression Discontinuity and Interrupted Time Series analysis has long confused me. I found a presentation of University of Washington that discusses the differences. It is almost the only place that I found this information.  It seems like the biggest difference is that ITS relies on population data and RD on individual data. Overall RD is more robust than ITS.

Latex

  • Conditional equations in Latex. Answers from here.
  • \[
        f(x)= 
    \begin{cases}
        \frac{x^2-x}{x},& \text{if } x\geq 1\\
        0,              & \text{otherwise}
    \end{cases}
    \]

    However, This code generate equation without numbering. To change it, we remove \[ and \] and replace with \begin{equation} and \end{equation}. Another thing to modify is when we write functions this why, the format of \sum becomes its in-line format – the beginning and end of the range of independent variable appears to the right of the capital sigma. To change that, use \sum\limits_{i=1}^{m_y} instead of \sum_{i=1}^{m_y}.

Advertisements

5/17/2017

LaTeX

  • In Latex, when table and some texts are on the same page, table will show up before text. To reverse this order, use \begin{table}[htb]. No idea what it means. This site says it means “causes LaTeX to try to fit the float “here”, or at the “top” of the current page (or the next page), or at the “bottom” of the current page (or the next page).” Doesn’t really make sen the statement.
  • In Latex, for figures or tables to not show up in the list of figures or tables, use the package {caption} then change the caption of that figure/ table from \caption{} to \caption*{}
  • In Latex, tables are sometimes too tight. In this case, after \\ or \hline, add \\[-1em]. When there is a margin that needs to be filled, instead of \\[-1em], use &\\[-1em]

General Epidemiology

  • Just a reminder: in a regression model, exp(beta) is OR in logistic regression and RR in poisson regression.