統計分析

Stata: 產生分組序號

有時候處理資料會遇到這樣的問題:你的資料裡面,每個人都有id,但每個人的id都非常長,而且有多筆紀錄。為了畫圖的時候更容易呈現資料,你想要產生一個新的id,將每一個人重新編號,第一個人不管有幾筆資料,編號均為1,第二個人編號為2,依此類推。

怎麼作呢?其實不難,但是沒想到的時候就會不知道該怎麼作。

egen id = group(oldid)

簡簡單單一行就可以了。

參考資料:http://www.stata.com/support/faqs/data/group.html

Stata: 產生分組序號 Read More »

Stata: 如何計算不重複值的筆數

Stata 有很多強大的功能,不過卻沒有一個比較簡單的指令可以直接計算不重複值的方法。

不過在這個網站,指出了三種計算不重複筆數的方法,非常強大!

參考資源:http://statadaily.wordpress.com/2010/10/01/ways-to-count-the-number-of-unique-values-in-a-variable/

方法一

tab varname, nofreq
display r(r)

方法二

inspect varlist
display r(N_unique)

方法三

codebook varlist

這三種方法都非常簡單易用,提供給大家作參考!

Stata: 如何計算不重複值的筆數 Read More »

qualitative data analysis

Conceptual framework 與 theoretical framework 大不同

不管是作質化研究或是量化研究,總得寫文獻探討的,但在期刊文章中,特別是人文科學的部分,其實很少人直接用 literature review 這個說法,而是用 conceptual framework 和 theoretical framework。conceptual framework 和 theoretical framework 聽起來很像對不對?其實兩者是不同的

所謂的 conceptual frameworkMiles and Huberman (1994) 所說的是 “A conceptual framework explains, either graphically or in narrative form, the main things to be studies – the key factors, constructs or variables – and the presumed relationship among them.…

Conceptual framework 與 theoretical framework 大不同 Read More »

Scroll to Top