linguistics

Similar documents
1 R Windows R 1.1 R The R project web R web Download [CRAN] CRAN Mirrors Japan Download and Install R [Windows 9

「スウェーデン企業におけるワーク・ライフ・バランス調査 」報告書

Excelfl—‘ãŁª’Í-flO“Z


Debian での数学ことはじめ。 - gnuplot, Octave, R 入門

43 IME Microsoft Office PowerPoint Microsoft Office Word Microsoft Office Excel

ECCS. ECCS,. ( 2. Mac Do-file Editor. Mac Do-file Editor Windows Do-file Editor Top Do-file e

カテゴリ変数と独立性の検定

5 5.1 A B mm 0.1mm Nominal Scale 74

Use R

dicutil1_5_2.book

x y 1 x 1 y 1 2 x 2 y 2 3 x 3 y 3... x ( ) 2

Rの基本的な使い方

Excel97関数編

Word ›žŠpŁÒ-flO“Z

pp R R Word R R R R Excel SPSS R Microsoft Word 2016 OS Windows7 Word2010 Microsoft Office2010 R Emacs ESS R R R R https:

untitled

pp Excel Excel Excel Microsoft Excel 2015 OS Windows7 Excel2010(Microsoft Office2010) Office Excel 2 Excel 33

Excel基礎講座演習-表紙とはじめにv1.3.doc

,

iR-ADV C2230/C2220 製品カタログ

‚æ01Łª“û†œ070203/1‘Í

R Commanderを用いたデータ解析

< D906C95B639352D8BF E954690E690B D5A CC8F898D5A816A2E706466>

untitled

untitled

untitled


Mantel-Haenszelの方法

情報工学概論

P.5 P.6 P.3 P.4 P.7 P.8 P.9 P.11 P.19

untitled

2 3


4名連記 P1-21

1.中山&内田 P1-9


yamadaiR(cEFA).pdf

30 Yamasaki Aki 1980 NHK NHK

1 Microsoft Office Power Point

% 95% 2002, 2004, Dunkel 1986, p.100 1

RX501NC_LTE Mobile Router取説.indb

untitled

R-introduction.R

pp Word Excel PowerPoint Microsoft Word Excel PowerPoint Word Excel PowerPoint a 201


cikm_field_weights.dvi

i

SD SD SD



好きですまえばし

TALC Teaching and Language Corpora Wichmann et al. ; Kettemann & Marko ; Burnard & McEnery ; Aston ; Hunston ; Granger et al. ; Tan ; Sinclair ; Aston

日経テレコン料金表(2016年4月)

B

73 p p.152


Microsoft Word - 田中亮太郎.doc

_Print

122011pp

2

A p A p. 224, p B pp p. 3.

p

スラヴ_00A巻頭部分

Microsoft Word - 映画『東京裁判』を観て.doc

9

() L () 20 1

308 ( ) p.121

広報かみす 平成28年6月15日号

.

戦後の補欠選挙

第1回(全5回) Rの基礎と仮説検定

t-a-PPT

講義のーと : データ解析のための統計モデリング. 第5回

Human Welfare 8‐1☆/4.坂口

LUCUA1100&LUCUA 1周年アニバーサリー! ~ルクア大阪が発信する新プロジェクト「LIFE」についてのご案内~

情報科学概論 第1回資料

2015_kisyuu

GIS GIS -2-

untitled

こんにちは由美子です


( ) ( ) Modified on 2009/05/24, 2008/09/17, 15, 12, 11, 10, 09 Created on 2008/07/02 1 1) ( ) ( ) (exgen Excel VBA ) 2)3) 1.1 ( ) ( ) : : (1) ( ) ( )

untitled

こんにちは由美子です

80 X 1, X 2,, X n ( λ ) λ P(X = x) = f (x; λ) = λx e λ, x = 0, 1, 2, x! l(λ) = n f (x i ; λ) = i=1 i=1 n λ x i e λ i=1 x i! = λ n i=1 x i e nλ n i=1 x

k2 ( :35 ) ( k2) (GLM) web web 1 :

2

untitled

‰IŠv07_›Z’¶

2 1,2, , 2 ( ) (1) (2) (3) (4) Cameron and Trivedi(1998) , (1987) (1982) Agresti(2003)


ONPRESS190

920P-1



広報しもつけp01ol


本文(B5×40)0614三校責了.indd

わが国企業による資金調達方法の選択問題

Transcription:

R @ linguistics 2007/08/24 ( ) R @ linguistics 2007/08/24 1 / 24

1 2 R 3 R 4 5 ( ) R @ linguistics 2007/08/24 2 / 24

R R: ( ) R @ linguistics 2007/08/24 3 / 24

R Life is short. Use the command line. (Crawley 2002: 11) R Commander ( ) R @ linguistics 2007/08/24 4 / 24

R Stefan Evert Stefan Gries (to appear). Quantitative corpus linguistics with R: a practical introduction. New York: Routledge. Harald Baayen (to appear). Analyzing Linguistic Data. A Practical Introduction to Statistics. Cambridge: Cambridge University Press. ( ) ( ) R @ linguistics 2007/08/24 5 / 24

R R > > 3+5 [1] 8 > 22/7 [1] 3.142857 > 1+2*3 [1] 7 > sqrt(49) [1] 7 ( ) R @ linguistics 2007/08/24 6 / 24

R > x <- 33 > y <- 6*7 > y [1] 42 > x+y [1] 75 ( ) R @ linguistics 2007/08/24 7 / 24

R :c > myvector <- c(1,5,4,3,8,6) > myvector [1] 1 5 4 3 8 6 > mean(myvector) [1] 4.5 > sd(myvector) [1] 2.428992 ( ) R @ linguistics 2007/08/24 8 / 24

R > help(sd) >?sd sum() max() rev() length() sort() summary() ( ) R @ linguistics 2007/08/24 9 / 24

R > mymatrix <- matrix(1:9, nrow=3) 1:9 c(1,2,3,4,5,6,7,8,9) > mymatrix [,1] [,2] [,3] [1,] 1 4 7 [2,] 2 5 8 [3,] 3 6 9 Excel > fix(mymatrix) ( ) R @ linguistics 2007/08/24 10 / 24

I give that to her. I give her that. Recipient 1 2 3 ( ) R @ linguistics 2007/08/24 11 / 24

read.delim() read.csv() (csv) Excel 1 Excel verbs.txt 2 3 R > verbs <- read.delim("clipboard") > verbs <- read.delim(choose.files()) ( ) R @ linguistics 2007/08/24 12 / 24

> head(verbs) xtabs > mydata <- xtabs ( + Recipient, data=verbs) > mydata NP 34 521 PP 47 301 ( ) R @ linguistics 2007/08/24 13 / 24

NP 34 521 PP 47 301 > barplot(mydata) > barplot(mydata, beside=t, legend=t) 1 2 Microsoft Word ( ) R @ linguistics 2007/08/24 14 / 24

NP 34 521 PP 47 301 > chisq.test(mydata) > fisher.test(mydata) ( ) R @ linguistics 2007/08/24 15 / 24

> fisher.test(mydata) Fisher s Exact Test for Count Data data: y p-value = 0.0002826 alternative hypothesis: true odds ratio is not equal to 1 95 percent confidence interval: 0.2547492 0.6809272 sample estimates: odds ratio 0.4183587 p < 0.001 ( ) R @ linguistics 2007/08/24 16 / 24

R > mysentence <- "This is a pen" > mysentence [1] "This is a pen" > mywords <- unlist(strsplit(mysentence, " ")) [1] "This" "is" "a" "pen" > grep("is", mywords) [1] 1 2 > grep("is", mywords, value=t) [1] "This" "is" ( ) R @ linguistics 2007/08/24 17 / 24

-ness P ness = n 1 N n 1 : -ness 1 N: -ness 1 2 3 ( ) R @ linguistics 2007/08/24 18 / 24

> alice.text <- scan(choose.files(), what="char", sep="\n") alice.txt > alice.text <- tolower(alice.text) > alice.words <- unlist(strsplit(alice.text, "\\W")) -ing > ing.words <- grep("ing$", alice.words, value=t) ( ) R @ linguistics 2007/08/24 19 / 24

> ing.freqlist <- table(ing.words) > ing.freqlist.sorted <- sort(ing.freqlist, decreasing=t) (N) > ing.token.freq <- sum(ing.freqlist.sorted) (n 1 ) > ing.hapax <- length(ing.freqlist.sorted[ing.freqlist.sorted==1]) > ing.hapax / ing.token.freq ( ) R @ linguistics 2007/08/24 20 / 24

> source(choose.files()) productivity.r > alice.text <- scan(choose.files(), what="char", sep="\n") alice.txt ( ) R @ linguistics 2007/08/24 21 / 24

freq.list(), type.freq(), token.freq(), hapax(), productivity() > freq.list("oo", alice.text) > productivity("ity$", alice.text) ( ) R @ linguistics 2007/08/24 22 / 24

R http://cwoweb2.bai.ne.jp/%7ejgb11101/ http://aoki2.si.gunma-u.ac.jp/r/ http://www.okada.jp.org/rwiki/ R wiki ( ) R @ linguistics 2007/08/24 23 / 24

( ) R @ linguistics 2007/08/24 24 / 24