Skip to content

Econometrics with R – Part 1


Econometrics with R- Part 1

Why have I written this manual

I love R. R is a great software for statistical analysis and producing beautiful and reliable graphic from data. I initially learned to use R myself and found it was a steep learning curve to do it alone. However, I have been successfully used R for my research thanks to such an useRs community. Whatever and whenever I got a problem in R, I can find an answer (or usually more than one answer) available freely in the Internet or just emailing the package creator and get the answer with CODE in minutes. Hence I have owned the useRs a great deal. Once I believe that I can contribute back to the R community, I thought that writing my version of R manual (from the non-programmer & econometrician aspect) would make a small contribution to the R ecosystem. I am not the expert in R, but believe in its power and potentials for others for research or teaching. If you find any bugs or error found in this manual, please do not hesitate to let me know. Then I will correct it ASAP.

Why do econometricians should use R

  1. Free
    Anyone can use R without any financial cost.
  2. Reliable
    R has been accepted as a lingua franca for statistical analysis. It has been widely and intensively used by both academics and practitioners.
  3. Available Window PC, Mac and Linux (with high compatibility)
    ข้อนี้ผมชอบมากเพราะส่วนตัวใช้ Mac แต่ที่โรงเรียนเป็น window PC
    การใช้ ทำให้ไม่ประสบปัญหาเรื่องการย้ายเครื่องคอมพิวเตอร์ในการวิเคราะห์ สามารถทำงานได้ทั้งบน Mac และ Window PC
  4. Fresh and Up-to-date
    เนื่องจากเป็น จึงมีผุ้ร่วมพัมนาโดยการเขียน Packages ซึ่งนักวิจัยและอาจารย์ที่มีชื่อเสียงหลายๆ ท่านก็จะเขียน Packages สำหรับเครื่องมือทางสถิติใหม่ๆ ซึ่งสามารถใช้ได้ฟรีเช่นกัน
  5. Worldwide community of useRs
    มีผู้ใช้งาน R มากมายทั่วโลก และหลายๆ คนก็เขียนคู่มือ ข้อแนะนำลงในอินเตอร์เน็ต หากมีปัญหาอะไร ลองค้นดูในอินเตอร์เน็ตกจะเจอคำตอบมากมาย นอกจากนี้ก็มี R-bloggers, Twitter (#rstats), stackoverflow ที่เราสามาาถติดต่อและถามคำถาม ผู้ใช้และผู้ที่พัฒนา  R ได้อย่างง่ายดาย
  6. Reproducibility 
    R มีการเก้บบันทึกคำสั่งในการวิเคราะห์ทำให้เราไม่ต้องจำว่ากดปุ่มไหนไปบ้าง ทำให้สามารถกลับไปดูการวิเคราะห์เก่าๆ และทำซ้ำได้อย่างง่ายดาย
  7. Synergy with LaTeX
    R สามารถใช้ร่วมกับ โปรแกรมการสร้่างเอกสารอย่างมืออาชีพอย่าง TeX หรือ  LaTeX ผ่านการ Sweave ได้อย่างมีประสิทธิภาพ
    สำหรับผู้ที่ต้องใช้การวิเคราะหืแบบเดิมๆ กับข้อมูลใหม่ที่มาอยู่เสมอ เช่น รายงานการเงินประจำปี นั้น การใช้ R จะทำให้ประหยัดเวลาได้เยอะมาก

Continue to Part 2

Other posts about R

2 Comments Post a comment
  1. Martí Casals #

    good post!! thanks! I suggest to use “read.csv2”,it is nice, too!
    Martí Casals.

    October 19, 2011

Leave a comment