Skip to content

Posts from the ‘Software’ Category

Handling of the author prefix in Bibtex

In the reference list, references are often ordered based on the surname of the first author alphabetically (A to Z). However some of author names contain prefix such as van or de. This is normally treated as the first letter of the author name in LaTeX. To retain this prefix in the reference but ignored by LaTeX, there is a need to do something more in the LaTeX script. Here is how to do it.

Assume we would like to deal with the reference whose first author name is Arjan van Weele, there are four steps to deal with this issue.

1. In preamble, add the following code.


2. Just before declare \bibliography{}, add the following code.


3. In the BibTeX, record author name as follows.

{\VAN{Weele}{Van}{van}} Weele, Arjan

4. Compile LaTeX as usual


Rename Bibliography to References in LaTeX

If the Babel package is used,

For book or report class, add the following code in the preamble.


For article class, add the following code in the preamble.


If the Babel package is NOT used,

For book or report class, add the following code in the preamble.


For article class, add the following code in the preamble.



Common error in technical writting

Today I found a useful information on common error in technical writing especially with LaTeX by John Owens from UC Davis.

Here is the link

My Course Wish List at CMSE next year

Here is the list  of courses I wish to teach next year at Chiang Mai School of Economics, not so sure about the demand there!

Undergraduate (B.Econ.)

Curriculum (pdf) 

  1. ECON 304: Economics Statistics  with an applications in R)
  2. ECON 415: Efficiencies and Productivity Measurement of Industries (Focus on Supply Chain Performance Measurement)
  3. ECON 320: International Business Economics (Focus on Supply Chain Economics for AEC analysis)


  • ECON 444: Urban Economics  (Focus on City Logistics in Chiang Mai and other Lanna provinces)
  • ECON 442: Regional Economics (Focus on AEC and GMS)
  • ECON 417: Managerial Economics (Focus on Logistics and Supply Chain Economics)
  • ECON 345: Transportation Economics
  • ECON 408: Research Design in Economics
  • ECON 419: Economic Theory and Entrepreneurship
  • ECON 443: Industrial Economics
  • ECON 4xx: Introduction to Economics of Logistics and Supply Chains (Pre: ECON 301 and Intro. to Business 703103)
  • ECON 4xx: Introduction to Structural Equation Modeling for Economics (Pre: ECON 304) (with R)


Master (M.Econ.)

  1. ECON 729: Applied Logistics and Supply Chain Economics (Selected Topic in Economic Theory)
  2. ECON 719: Applied  Structural Equation Modeling in Economics (Selected Topics in Quantitative Economics) (with R)


  1. ECON 829: Advanced Logistics and Supply Chain Economics (Selected Topic in General Economic & Theory)
  2. ECON 819: Advanced  Structural Equation Modeling in Economics (Selected Topics in Advanced Econometrics) (with R)

Highlights of the useR! 2012 – Review of the reviews

It’s gutted that I could not attend useR! 2012 after having a great time at useR!2011 at Warwick.

However, a great active online community of useRs allows me to get lots of goods stuffs from the conference even though I did not attend physically.

By keep following the #useR2012 and #rstats in Twitter and reading some great posts from R-bloggerRs on the useR! 2012, the the highlights I got are an emerging of the reproducible research with knitr package and its integration in R Studio as well as a good collection of pre-conference short course by Bill Venables.

My Highlights 

  1. knitr
    As expected, many of #useR2012 tweets were about knitr and its creator Yihui Xie. Even though an existence of Sweave which allow one to build a reproducible report by  integrating text and R code into one document, its learning curve is quite steep. For my experience, it took me quite a while to set up emac and ESS and actually produce the first Sweave document. However it seems worth while to learn for the long term benefits of my teaching and research.Moreover, an integration between knitr and R Studio (IDE for R)has taken reproducible report and research to another level as well as expand the wider useRs. With the use of R Studio and knir, one can be able to make a reproducible report and research in minutes as I did. Here is my previous post on reproducible report & research with knitr in R Studio.Back to useR! 2012. It’s very glad to read the presentation by Yihui Xie (knitr) and JJ Allaire (R Studio) on ‘New Tools for Reproducible Research with R’ (slides).
  2. R short course
    As Frank Harrell mentioned in useR! 2011 that there will be a pre-conference short course, and it was constructed by well-known useR and statistician Bill Venables. I found that one may learn a lot just by reading slides and follow the codes provided in this link.

What others say about useR! 2012?

Related posts


%d bloggers like this: