Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6767281
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T14:55:56+00:00 2026-05-26T14:55:56+00:00

I intend to to some principal component analysis and I am using this PCA

  • 0

I intend to to some principal component analysis and I am using this PCA tutorial as a guide. I have the following code:

library("ade4")
Data <- read.table("D:/Bla/Data1.txt", header = TRUE, sep="\t")    
plot(Data$X, Data$Y)
pc <- dudi.pca(Data, scale = FALSE, scan = FALSE)    
pc$eig

However, I just don’t get the some eigen values as the ones in the tutorial. Am I doing something wrong or does dudi.pca have known ‘issues’? BTW how do I obtain the eigen vectors?

PS:

I used this data:

X   Y
2.5 2.4
0.5 0.7
2.2 2.9
1.9 2.2
3.1 3
2.3 2.7
2   1.6
1   1.1
1.5 1.6
1.1 0.9

which dudi.pca normalises by substracting the mean.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T14:55:57+00:00Added an answer on May 26, 2026 at 2:55 pm

    In the pdf you linked to, the eigenvalues are obtained via the command:

    eigen(cov(Data))
    

    whereas the eigenvalues from dudi.pca (I presume), come from the centred and scaled covariance matrix.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some code in C++ for Windows and I intend to port it
I am using Linux and intend to remove some files using shell. I have
I have some settings in my app.config which I intend to be 'global' -
I'm trying to display an image using OpenCV. I have the following very basic
I have some* experience using the flex framework for building web apps. But I
I am currently refactoring some code which performs Windows Impersonation for testability and have
i intend to display some information when i right click on a textbox. this
I have some code which utilizes parameterized queries to prevent against injection, but I
Ok i have some jquery javascript which i intend on adding a .load() event
i intend to do some menu with tabs, if I have the tabs ordered

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.