# 1209 search results for "latex"

## R: Function to create tables in LaTex or Lyx to display regression model results

June 19, 2009
By

Most people using LaTex feel that creating tables is no fun. Some days ago I stumbled across a neat function written by Paul Johnson that produces LaTex code as well as LaTex code that can be used within Lyx. The output can be used for regression models and looks like output from the Stata outreg

## Combining R and LaTeX with Sweave

January 6, 2009
By

Today I did some experiments to learn how to combine R and LaTeX to create reproducible research reports. Here are my first results:First Demo ...

## Combining R and LaTeX with Sweave

January 6, 2009
By

Today I did some experiments to learn how to combine R and LaTeX to create reproducible research reports. Here are my first results:First Demo ...

## statistically significant trends with multiple years of complex survey data

November 22, 2015
By

guest post by my friend thomas yokota, an oahu-based epidemiologist. palmero professor vito muggeo wrote the joinpoint analysis section of the code below to demonstrate that the segmented package eliminates the need for external (registration-only, windows-only) software. survey package creator...

## Create ARIMA time series from bottom up

November 20, 2015
By

Simulating ARIMA models Generating an arbitrary Auto-Regressive Integrated Moving Average (ARIMA) model is easy in R with the arima.sim() function that is part of the built-in {stats} package. In fact I've done it extensively in previous blog posts for various illustrative purposes. But one cost of doing this for educational purposes is that the mechanics of...

## The R-Podcast Episode 14: Tips and Tricks for using R-Markdown

November 18, 2015
By

The R-Podcast is back up and running! In this episode I discuss some useful resources and helpful tips/extensions that have greatly enhanced my work flow in creating reproducible analysis documents via R-Markdown. I also highlight some exciting new endeavors in the R community as well as provide my take on two key events that further

## Profile Likelihood

November 16, 2015
By
$F_{\boldsymbol{\theta}}$

Consider some simulated data > set.seed(1) > x=exp(rnorm(100)) Assume that those data are observed i.id. random variables with distribution, with . The natural idea is to consider the maximum likelihood estimator For instance, consider some maximum likelihood estimator, > library(MASS) > (F=fitdistr(x,"gamma")) shape rate 1.4214497 0.8619969 (0.1822570) (0.1320717) > F\$estimate+c(-1,1)*1.96*F\$sd 1.064226 1.778673 Here, we have an approximated (since the...

## Applied Statistical Theory: Quantile Regression

November 13, 2015
By
$Applied Statistical Theory: Quantile Regression$

This is part two of the ‘applied statistical theory’ series that will cover the bare essentials of various statistical techniques. As analysts, we need to know enough about what we’re doing to be dangerous and explain approaches to others. It’s not enough to say “I used X because the misclassification rate was low.” Standard linear

## Variable Importance with Correlated Features

November 6, 2015
By
$Y=\beta_0+\beta_1 X_{1}+\beta_3 X_{3}+\varepsilon$

Variable importance graphs are great tool to see, in a model, which variables are interesting. Since we usually use it with random forests, it looks like it is works well with (very) large datasets. The problem with large datasets is that a lot of features are ‘correlated’, and in that case, interpretation of the values of variable importance plots can...

## Applications of Chi-Square Tests

November 3, 2015
By
$\boldsymbol{N}=(N_1,\cdots,N_k)\sim\mathcal{M}(n,\boldsymbol{p})$

This morning, in our mathematical statistical class, we’ve seen the use of the chi-square test. The first one was related to some goodness of fit of a multinomial distribution. Assume that . In order to test  against , use the statistic Under , . For instance, we have the number of weddings, in a large city, per season, > n=c(301,356,413,262) We want to test...