24小时热门版块排行榜    

Znn3bq.jpeg
查看: 3014  |  回复: 14

一笑35

铁虫 (初入文坛)

[交流] 【求助/交流】虫虫们,有没有做PCA主成分分析的啊? 已有12人参与

各位虫虫们,有没有做PCA主成分分析的啊,一般是用什么软件呢,有可以免费下载的网址吗?
回复此楼
努力学习,充实自己!
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

yanruoke

银虫 (正式写手)


小木虫(金币+0.5):给个红包,谢谢回帖交流
请问分析对象具体是?
戒嗔怒以养肝气,省言语以养神气,多读书以养质气,顺时令以养元气,不拘节以养大气,观天变以养灵气,莫强求规于运气。
2楼2010-08-25 09:18:13
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

reasonspare

木虫 (著名写手)

★ ★ ★
小木虫(金币+0.5):给个红包,谢谢回帖交流
silicare(金币+2):专家级~ 2010-08-25 12:28:28
引用回帖:
Originally posted by 一笑35 at 2010-08-25 09:12:36:
各位虫虫们,有没有做PCA主成分分析的啊,一般是用什么软件呢,有可以免费下载的网址吗?

最经典的是用SAS得princomp过程。另来SAS 得的主因子分析 Factor 因不错。
此外SPSS.也不错。其他的诸如


Metlab,也有现成的命令

princomp - Principal component analysis on data
Syntax

[COEFF,SCORE] = princomp(X)
[COEFF,SCORE,latent] = princomp(X)
[COEFF,SCORE,latent,tsquare] = princomp(X)
[...] = princomp(X,'econ')
Description

COEFF = princomp(X) performs principal components analysis on the n-by-p data matrix X, and returns the principal component coefficients, also known as loadings. Rows of X correspond to observations, columns to variables. COEFF is a p-by-p matrix, each column containing coefficients for one principal component. The columns are in order of decreasing component variance.

princomp centers X by subtracting off column means, but does not rescale the columns of X. To perform principal components analysis with standardized variables, that is, based on correlations, use princomp(zscore(X)). To perform principal components analysis directly on a covariance or correlation matrix, use pcacov.

[COEFF,SCORE] = princomp(X) returns SCORE, the principal component scores; that is, the representation of X in the principal component space. Rows of SCORE correspond to observations, columns to components.

[COEFF,SCORE,latent] = princomp(X) returns latent, a vector containing the eigenvalues of the covariance matrix of X.

[COEFF,SCORE,latent,tsquare] = princomp(X) returns tsquare, which contains Hotelling's T2 statistic for each data point.

The scores are the data formed by transforming the original data into the space of the principal components. The values of the vector latent are the variance of the columns of SCORE. Hotelling's T2 is a measure of the multivariate distance of each observation from the center of the data set.

When n <= p, SCORE(:,n:p) and latent(n:p) are necessarily zero, and the columns of COEFF(:,n:p) define directions that are orthogonal to X.

[...] = princomp(X,'econ') returns only the elements of latent that are not necessarily zero, and the corresponding columns of COEFF and SCORE, that is, when n <= p, only the first n-1. This can be significantly faster when p is much larger than n.
Examples

Compute principal components for the ingredients data in the Hald data set, and the variance accounted for by each component.

load hald;
[pc,score,latent,tsquare] = princomp(ingredients);
pc,latent

pc =
  0.0678 -0.6460  0.5673 -0.5062
  0.6785 -0.0200 -0.5440 -0.4933
-0.0290  0.7553  0.4036 -0.5156
-0.7309 -0.1085 -0.4684 -0.4844

latent =
517.7969
  67.4964
  12.4054
   0.2372

The following command and plot show that two components account for 98% of the variance:

cumsum(latent)./sum(latent)
ans =
      0.86597
      0.97886
       0.9996
            1
biplot(pc(:,1:2),'Scores',score(:,1:2),'VarLabels',...
                {'X1' 'X2' 'X3' 'X4'})


» 本帖已获得的红花(最新10朵)

大慈大悲观世音救苦救难观世音有求必应观世音普渡众生观世音千手千眼观世音官大敢管观世音无处不在观世音普观普长观世音南无观世音菩萨
3楼2010-08-25 09:59:53
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

一笑35

铁虫 (初入文坛)

我是用来做DGGE的PCA主成分分析的,可以从较官方网上免费下载吗?
努力学习,充实自己!
4楼2010-08-25 10:54:10
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

sqhnsd

金虫 (正式写手)


小木虫(金币+0.5):给个红包,谢谢回帖交流
引用回帖:
Originally posted by 一笑35 at 2010-08-25 09:12:36:
各位虫虫们,有没有做PCA主成分分析的啊,一般是用什么软件呢,有可以免费下载的网址吗?

大名鼎鼎的R软件业可以做,不过需要自己去学习,关键R是免费的
5楼2010-08-25 10:55:13
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

crydevil

金虫 (小有名气)


小木虫(金币+0.5):给个红包,谢谢回帖交流
DGGE分析需要先转换成数字信号,然后用统计软件就可以了,我用的SPSS 还是比较容易上手的
6楼2010-08-25 15:31:19
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

一笑35

铁虫 (初入文坛)

谢谢各位的帮忙啊!
努力学习,充实自己!
7楼2010-08-25 17:15:41
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

plantaqp

金虫 (正式写手)


小木虫(金币+0.5):给个红包,谢谢回帖交流
引用回帖:
Originally posted by reasonspare at 2010-08-25 09:59:53:



最经典的是用SAS得princomp过程。另来SAS 得的主因子分析 Factor 因不错。
此外SPSS.也不错。其他的诸如


Metlab,也有现成的命令

princomp - Principal component analysis on data
Syntax

[C ...

斑斑,做个简易教程吧
8楼2010-08-25 20:02:22
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

一笑35

铁虫 (初入文坛)

引用回帖:
Originally posted by reasonspare at 2010-08-25 09:59:53:



最经典的是用SAS得princomp过程。另来SAS 得的主因子分析 Factor 因不错。
此外SPSS.也不错。其他的诸如


Metlab,也有现成的命令

princomp - Principal component analysis on data
Syntax

[C ...

能教教我怎么做吗?
努力学习,充实自己!
9楼2010-08-30 16:42:22
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

jzhe961

木虫 (正式写手)

★ ★ ★
小木虫(金币+0.5):给个红包,谢谢回帖交流
lstt09nk(金币+2):热心虫友~~ 2010-08-31 08:52:44
PCA 分析属于最基本的多元统计方法,大一些的统计软件都有此功能,如SPSS, SAS, Statistica ,国产的DPS等。只不过国外软件中许多参数及名称和DPS的都不一样,有些定义要看它们的算法表达式才能准确理解。
10楼2010-08-31 08:43:04
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 一笑35 的主题更新
普通表情 高级回复 (可上传附件)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 生物学调剂 +10 纸扇zhishan 2026-04-13 10/500 2026-04-18 21:19 by zqndavala
[考研] 320求调剂 +5 深郊akm 2026-04-17 5/250 2026-04-18 19:52 by 王珺璞
[考研] 接受任何调剂 +6 也就是栗子 2026-04-17 7/350 2026-04-18 17:20 by 涵竹刘
[考研] 收到复试调剂但是去不了 +8 小蜗牛* 2026-04-16 8/400 2026-04-18 11:15 by zixin2025
[考研] 304求调剂 +7 castLight 2026-04-16 7/350 2026-04-17 20:05 by 关一盏灯cd
[有机交流] 二苯甲酮酸类衍生物 50+3 小白爱主人 2026-04-17 6/300 2026-04-17 18:47 by kf2781974
[考研] 294求调剂 +7 淡然654321 2026-04-17 8/400 2026-04-17 16:36 by wutongshun
[考研] 327求调剂 +26 Xxjc1107. 2026-04-13 29/1450 2026-04-16 10:52 by Espannnnnol
[考研] 289 分105500药学专硕求调剂(找B区学校) +4 白云123456789 2026-04-13 4/200 2026-04-16 00:18 by 粉沁若尘
[考研] 通信工程求调剂!!! +6 zlb770521 2026-04-14 6/300 2026-04-15 20:00 by 学员JpLReM
[考研] 药学求调剂 +11 RussHu 2026-04-12 13/650 2026-04-15 19:07 by zhuwenxu
[考研] 食品与营养(0955)271求调剂 +15 升格阿达 2026-04-12 16/800 2026-04-14 13:18 by 浮若_安生
[考研] 245求调剂 +6 冰糖橘?汽水 2026-04-13 10/500 2026-04-14 10:49 by jyl0317
[考研] 085600材料与化工329分求调剂 +24 叶zilin 2026-04-13 25/1250 2026-04-14 09:20 by 试管破裂
[考研] 考研求调剂 +12 子木呐 2026-04-12 13/650 2026-04-14 01:19 by 王珺璞
[考研] 考研英一数一338分 +9 长江大学东校区 2026-04-13 10/500 2026-04-14 00:41 by 王珺璞
[考研] 297工科,求调剂? +13 河南农业大学-能 2026-04-12 13/650 2026-04-13 14:12 by dingyanbo1
[考研] 一志愿085802 323分求调剂 +13 drizzle_9 2026-04-12 14/700 2026-04-13 10:26 by Faiz5552
[考研] +10 李多米lee. 2026-04-12 11/550 2026-04-12 22:58 by yuyin1233
[考研] 一志愿浙大生物325分求调剂 +9 zysheng 2026-04-12 9/450 2026-04-12 22:31 by yuyin1233
信息提示
请填处理意见