1011 search results for "LaTeX"

Sweave source for poll report

June 13, 2011
By

Sweave source for the poll report for those who expressed some interest. You’ll also need this file of R function definitions, utilities.R. I also wrote a little shell script that calls Sweave and xelatex etc, hacking the Sweave.sh script that ships with R.

Read more »

Additive modelling and the HadCRUT3v global mean temperature series

June 12, 2011
By
Additive modelling and the HadCRUT3v global mean temperature series

Earlier, I looked at the HadCRUT3vgl data set using generalized least squares to investigate whether the trend in temperature since 1995 was statistically significant. Here I want to follow-up one of the points from the earlier posting; namely using a … Continue reading →

Read more »

Rotating disks

June 9, 2011
By
Rotating disks

My neighbour is an half-retired entrepreneur who still runs his electric engine company. A few weekends ago, he came to me with the following physics question related with one of those engines: given a primary disk rotating at the angular speed of ω0 and a secondary disk located on the first one with a centre

Read more »

Australians and Americans, 10 years after 9/11

June 2, 2011
By

With Lynn Vavreck at UCLA, I ran parallel public opinion surveys in Australia and the United States, measuring attitudes on security, the fight against terrorism, the wars in Afghanistan etc, some 10 years after the 9/11 attacks. Full report here (gene...

Read more »

An Application of boot() to IV regression

May 28, 2011
By
An Application of boot() to IV regression

Bootstrapping standard errors can be a useful technique when obtaining closed form for the standard error formula is difficult or intractable. In this post, I give an example of how to use R to create a bootstrap sampling distribution in the context o...

Read more »

An Application of boot() to IV regression

May 28, 2011
By
An Application of boot() to IV regression

Bootstrapping standard errors can be a useful technique when obtaining closed form for the standard error formula is difficult or intractable. In this post, I give an example of how to use R to create a bootstrap sampling distribution in the context o...

Read more »

Sweave and pgfSweave in LyX 2.0.x (experimental)

May 25, 2011
By

bout half a year ago, I wrote a post on the configuration of (pgf)Sweave and LyX, which was intended to save us some efforts in going through all the details during the configuration. Now many things have changed: LyX 2.0 has internal support for Sweave, and fortunately I have been in touch with the developers

Read more »

Stata-like Marginal Effects for Logit and Probit Models in R

May 17, 2011
By
Stata-like Marginal Effects for Logit and Probit Models in R

Although this blog’s primary focus is time series, one feature I missed from Stata was the simple marginal effects command, ‘mfx compute’, for cross-sectional work, and I could not find an adequate replacement in R. To bridge this gap, I’ve written a (rather messy) R function to produce marginal effects readout for logit and probit

Read more »

AIB Stock Price, EGARCH-M, and rgarch

May 17, 2011
By
AIB Stock Price, EGARCH-M, and rgarch

This post examines conditional heteroskedasticity models in the context of daily stock price data for Allied Irish Banks (AIB), specifically how to test for conditional heteroskedasticity in a series, how to approach model specification and estimation when time-varying volatility is present, and how to forecast with these models; all of this is done in R,

Read more »

Cointegration, R, Irish Mortgage Debt and Property Prices

May 15, 2011
By
Cointegration, R, Irish Mortgage Debt and Property Prices

As a follow-up to my post examining the stationarity of the new property price index, this post will briefly look at some of the dynamics of mortgage debt and property prices; all data is monthly, from the beginning of 2005 to March 2011. This will also serve as an illustration of the ‘vars‘ and ‘urca‘

Read more »