<?xml version="1.0" encoding="UTF-8" ?><rdf:RDF 
  xmlns="http://purl.org/rss/1.0/"
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:atom="http://www.w3.org/2005/Atom"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xml:lang="ja">
  <channel rdf:about="http://w.atwiki.jp/hayeong/">
    <title>hayeong @ ウィキ</title>
    <link>http://w.atwiki.jp/hayeong/</link>
    <atom:link href="https://w.atwiki.jp/hayeong/rss10.xml" rel="self" type="application/rss+xml" />
    <atom:link rel="hub" href="https://pubsubhubbub.appspot.com" />
    <description>hayeong @ ウィキ</description>

    <dc:language>ja</dc:language>
    <dc:date>2013-05-14T16:53:03+09:00</dc:date>
    <utime>1368517983</utime>

    <items>
      <rdf:Seq>
                <rdf:li rdf:resource="https://w.atwiki.jp/hayeong/pages/60.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/hayeong/pages/76.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/hayeong/pages/15.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/hayeong/pages/75.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/hayeong/pages/41.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/hayeong/pages/27.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/hayeong/pages/74.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/hayeong/pages/28.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/hayeong/pages/26.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/hayeong/pages/40.html" />
              </rdf:Seq>
    </items>
	
		
    
  </channel>
    <item rdf:about="https://w.atwiki.jp/hayeong/pages/60.html">
    <title>csv</title>
    <link>https://w.atwiki.jp/hayeong/pages/60.html</link>
    <description>
      The first row of the data file should contain the column names.

#Data Frame 
-------------- 
 Hight, Weight
 170, 45
 158, 50
 165, 55
--------------

#Import data from CSV 
myData&lt;-read.table(&quot;c://data.csv&quot;,sep=&quot;,&quot;)


















----    </description>
    <dc:date>2013-05-14T16:53:03+09:00</dc:date>
    <utime>1368517983</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/hayeong/pages/76.html">
    <title>As Numeric</title>
    <link>https://w.atwiki.jp/hayeong/pages/76.html</link>
    <description>
      [[as.numeric]](myData) #数字として認識させる（ベクトル）

data.matrix(myData)#数字として認識させる（マトリクス）


































ーーー    </description>
    <dc:date>2013-05-14T14:50:35+09:00</dc:date>
    <utime>1368510635</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/hayeong/pages/15.html">
    <title>R.Stat</title>
    <link>https://w.atwiki.jp/hayeong/pages/15.html</link>
    <description>
      -Prepare Data
--[[csv]]
--[[xls]]
--[[txt]]
--[[sav]]
-Data Read and Write
--[[read.table]]
--[[write.table]]
--[[quote=F]]
--[[row.names=F]]
--[[as.numeric]]
-Data Check
--[[length]]
--[[ncol, nrow]]
-Data Type
--[[NULL]] / [[Na]] / [[NaN]] / [[Inf]]
--[[How to deal Na?]]
--[[As Numeric]]
-Edit Data
--[[edit(x)]]
--[[scale(x)]]
--[[round(x,2)]]
--[[t(x)]]
--[[merge(x)]]
--[[replace]]
--[[order]]
--[[標準化]]
-Analysis Data
--[[sum(x)]]
--[[mean(x)]]
--[[sd(x)]]　[[標準偏差]]
--[[var(x)]] [[分散]]
--[[skew(x)]]
--[[kurt(x)]]
--[[cor(x)]]
--[[cov(x)]]
-Graph
--[[barplot]]
-Matrix
--[[matrix:: 10 × 10]]
-References
--[[青木 繁伸「R による統計処理」&gt;&gt;http://aoki2.si.gunma-u.ac.jp/R/]]
-Warnings



-----    </description>
    <dc:date>2013-05-14T14:49:13+09:00</dc:date>
    <utime>1368510553</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/hayeong/pages/75.html">
    <title>Warnings</title>
    <link>https://w.atwiki.jp/hayeong/pages/75.html</link>
    <description>
      Error in plot.window(...) : need finite &#039;xlim&#039; values
 In addition: Warning messages:
 1: In xy.coords(x, y, xlabel, ylabel, log) : NAs introduced by coercion
 2: In xy.coords(x, y, xlabel, ylabel, log) : NAs introduced by coercion
 3: In min(x) : no non-missing arguments to min; returning Inf
 4: In max(x) : no non-missing arguments to max; returning -Inf
 5: In min(x) : no non-missing arguments to min; returning Inf
 6: In max(x) : no non-missing arguments to max; returning -Inf

The problem is that the code is assigning the character strings &quot;V1&quot; and &quot;V2&quot; to x and y, and not the numerical data. It is needed to assign the read.table results to a variable.    </description>
    <dc:date>2013-05-14T14:41:33+09:00</dc:date>
    <utime>1368510093</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/hayeong/pages/41.html">
    <title>標準化</title>
    <link>https://w.atwiki.jp/hayeong/pages/41.html</link>
    <description>
      各変数を平均1，分散1 となるように標準化

標準値　＝　（測定値　－　平均値）/　標準偏差



さて、データを行において標準化する手順
①dataを入れる。
data&lt;-read.table(&quot;clipboard&quot;,header=T,row.names=1)
②dataを行において中心化する。（行ごとに平均を引く）
data2&lt;-sweep(data,1,apply(data,1,mean),FUN=&quot;-&quot;)
③dataを行ごとにその行の標準偏差で割る
data3&lt;-sweep(data2,1,apply(data,1,sd),FUN=&quot;/&quot;)


参考
http://d.hatena.ne.jp/kamiyun/20120116/1326743747















----    </description>
    <dc:date>2013-05-14T11:18:27+09:00</dc:date>
    <utime>1368497907</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/hayeong/pages/27.html">
    <title>SNA</title>
    <link>https://w.atwiki.jp/hayeong/pages/27.html</link>
    <description>
      Social Network Analysis

install.packages(&quot;sna&quot;)
install.packages(&quot;network&quot;)
install.packages(&quot;igraph&quot;)
install.packages(&quot;statnet&quot;)
library(&quot;MASS&quot;)


- how to conver Adjacency Matrix (隣接行列へ）R統計

n &lt;-   10 ; m &lt;- 4 
set.seed(1) 
M &lt;- [[matrix]](as.logical(rbinom(n*m, size=1, prob = 0.3)), n,m) 
symnum(M) 
              
 [1,] . . | . 
 [2,] . . . . 
 [3,] . . . . 
 [4,] | . . . 
 [5,] . | . | 
 [6,] | . . . 
 [7,] | | . | 
 [8,] . | . . 
 [9,] . . | | 
 [10,] . | . . 

print.table(A.1 &lt;- tcrossprod(M), zero = &quot;.&quot;) 
      [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] 
 [1,]    1    .    .    .    .    .    .    .    1     . 
 [2,]    .    .    .    .    .    .    .    .    .     . 
 [3,]    .    .    .    .    .    .    .    .    .     . 
 [4,]    .    .    .    1    .    1    1    .    .     . 
 [5,]    .    .    .    .    2    .    2    1    1     1 
 [6,]    .    .    .    1    .    1    1    .    .     . 
 [7,]    .    .    .    1    2    1    3    1    1     1 
 [8,]    .    .    .    .    1    .    1    1    .     1 
 [9,]    1    .    .    .    1    .    1    .    2     . 
 [10,]    .    .    .    .    1    .    1    1    .     1 

print.table(A.2 &lt;-  crossprod(M), zero = &quot;.&quot;) 
     [,1] [,2] [,3] [,4] 
 [1,]    3    1    .    1 
 [2,]    1    4    .    2 
 [3,]    .    .    2    1 
 [4,]    1    2    1    3 
 
by Martin Maechler, ETH Zurich 

SNA in R
install.packages(&quot;igraph&quot;)
library(&#039;igraph&#039;)



#graph
library(igraph)
g&lt;-graph.adjacency(myAM,mode=&quot;undirected&quot;)
V(g)$name&lt;-c(&quot;p1&quot;,&quot;p2&quot;,&quot;p3&quot;,&quot;p4&quot;,&quot;p5&quot;)
plot(g,vertex.label=V(g)$name)



#次数分布
plot(degree.distribution(g,mode=&quot;in&quot;),log=&quot;xy&quot;)

##ネットワークの特徴的な量は、
#ノード数
vcount(g)
#エッジ数
ecount(g)
#平均最短距離
average.path.[[length]](g)
#クラスタリング係数
transitivity(g)
#平均次数
sum(degree(g))/vcount(g)

参考：
http://sphericalharmonics.blog110.fc2.com/blog-entry-13.html










----    </description>
    <dc:date>2013-05-14T10:59:41+09:00</dc:date>
    <utime>1368496781</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/hayeong/pages/74.html">
    <title>相関係数</title>
    <link>https://w.atwiki.jp/hayeong/pages/74.html</link>
    <description>
      相関係数

２変数がともに連続変数（間隔尺度，比率尺度）で正規分布している場合，ピアソンの積率相関係数を用います。
２変数が、正規分布していない場合や、離散変数（名義尺度，順序尺度）の場合，スピアマンの順位相関係数を用います。    </description>
    <dc:date>2013-01-08T18:02:40+09:00</dc:date>
    <utime>1357635760</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/hayeong/pages/28.html">
    <title>Statistics</title>
    <link>https://w.atwiki.jp/hayeong/pages/28.html</link>
    <description>
      -[[サンプル(Samples)]]
-[[変数(Variables)]]
-[[尺度(Scale)]]

-[[空間上の距離]]
--[[ユークリッド距離]]
--[[マハラノビス距離]]
-[[ベクトル]]
--[[固有ベクトル]]
--[[特性ベクトル]]
-[[標準化]]
-[[正規分布]]
-[[変数間の関係を調べる指標]]
--量的データと量的データの間の関連性を調べる: [[相関係数]], [[共分散]]
--量的データと質的データの間の関連性を調べる：[[相関比]]
--質的データと質的データの間の関連性を調べる：[[クラメールの連関係数]]

-[[サンプル間の関係を調べる指標]]
--[[Simpson係数]]
--[[Jaccard係数]]
--[[Cosine距離]]
-[[複数の特性に基づいてサンプルを分類・グルッピングする]]
-[[判別分析]]
-[[因子分析]]
-[[主成分分析]]

-[[検定(test)]]
--[[t-test]]
--[[chisq-test]]　 #独立性検定



















----    </description>
    <dc:date>2013-01-08T18:01:44+09:00</dc:date>
    <utime>1357635704</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/hayeong/pages/26.html">
    <title>PHP</title>
    <link>https://w.atwiki.jp/hayeong/pages/26.html</link>
    <description>
      # cygwinにPHPをインストールする手順

1. Download php-5.3.9.tar.gz  (/usr/src/php-5.3.9.tar.gz)
http://jp2.php.net/downloads.php

2. Unzip php-5.3.9.tar.gz in cygwin
$ tar zxvf php-4.4.7.tar.gz 

3. Go to php-5.3.9 folder
$ cd php-5.3.9
$ ./configure \

4. Make
$ make

5.

# インストール参考サイト
http://blog.livedoor.jp/shingo555jp/archives/148440.html

















----    </description>
    <dc:date>2012-03-07T15:51:38+09:00</dc:date>
    <utime>1331103098</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/hayeong/pages/40.html">
    <title>Tex</title>
    <link>https://w.atwiki.jp/hayeong/pages/40.html</link>
    <description>
      -Font
--size
表内サイズは、tableとtabular環境の間に文字サイズを設定する。
例：　\begin{table} {\small \begin{tabular} ・・・　\end{tabular} \} \end{table} 

--type
-Figure
--size
--location
-Table
-Equation
-Citation
-Bib

Reference
-[[Latexコマンドシート一覧&gt;&gt;http://www002.upp.so-net.ne.jp/latex/]]














----    </description>
    <dc:date>2011-12-27T12:31:01+09:00</dc:date>
    <utime>1324956661</utime>
  </item>
  </rdf:RDF>
