I would like to have an SAS code for PCA analysis. I would appreciate if you could also send an example input file and output result file.
Hi,
You can find good description with good examples in the following linke:
http://jonathantemplin.com/files/multivariate/mv05psyc990/psyc990_10.pdf
Hi
Please refer to the attached file.
http://www.ats.ucla.edu/stat/sas/output/principal_components.htm
http://support.sas.com/documentation/cdl/en/statug/63347/HTML/default/viewer.htm#statug_factor_sect028.htm
I suggest SAS analyst for PCA. It produces nice graphs.
http://support.sas.com/documentation/cdl/en/anlystug/58352/HTML/default/viewer.htm#chap13_sect2.htm
Resulted code for example:
*----------------------------------------------------------+
| Generated: Wednesday, August 7, 2019 10:18:31 |
| Data: C:\Users\Admin\Documents\My SAS Files(32)\9.2\new2 |
+----------------------------------------------------------*;
title ;
footnote;
*** Principal Components Analysis *** ;
options pageno=1;
proc princomp data=SASUSER.new2;
var ALKPH NEFA BHBA GUL CHOL HDL TRG LDL VLDL TPRO CA P MG GGT ALB OX BCS
KETOSIS;
run; quit;
goptions reset=all device=WIN;
*** Principal components plot ***;
proc princomp data=SASUSER.new2 out=work._scores std noprint;
run;
title;
proc corr noprint data=work._scores out=work._corr;
KETOSIS prin:;
with ALKPH NEFA BHBA GUL CHOL HDL TRG LDL VLDL TPRO CA P MG GGT ALB OX BCS
data work._scores;
set work._scores(in=inscore)
work._corr(where=(_type_='CORR'));
if inscore then do;
_type_ = 'SCORE';
_name_ = 'ROW'||left(put(_n_,12.));
end;
/* --- put # of PRIN# variables in macro variable --- */
data _null_;
dsid = open("work._scores");
_maxn_ = 0;
do _i_ = 1 to 9999;
if varnum(dsid,'PRIN'|| left(trim(put(_i_,4.)))) > 0 then
_maxn_ = _i_;
else leave;
call symput('_maxprin',left(trim(put(_maxn_,4.))));
rc = close(dsid);
options nodate nonumber;
/* --- macro definition --- */
%macro _myplot(plotvar1,plotvar2,desc);
%let dim1 = %substr(&plotvar1,5);
%let dim2 = %substr(&plotvar2,5);
%if &dim1
Why agri industries are more keen in producing double haploids in wheat. What are the advantages and disadvantages of producing double haploids in wheat
11 December 2015 2,731 4 View
Even some key well known professors or scientists in world renowned academic universities or institutes doesn’t update their lab webpage/websites including personal, publications, projects etc…...
31 December 2014 3,671 2 View
In plants is it the short dense fibrous or long narrow taproots that absorb more water and nutrients needed for plant growth ?
09 October 2014 3,394 5 View
Several greenhouse and growth chamber studies have been conducted in controlled environment to determine the crop genotypes for increased heat tolerance but is there a way to screen large number...
08 September 2014 1,429 10 View
I would like to learn more about SPSS and Its application especially in regards to data analysis. Please suggest me how I can learn more about it. Thank you so much.
11 August 2024 9,101 4 View
I have reverse sequences (AB1 format), can I base on reverse DNA sequences to perform nucleotide alignment, convert nucleotides to amino acids and deposit the sequence in GenBank database?
11 August 2024 5,138 1 View
Hello, Why do i see this baseline drift when i compare my blank (black) to the sample (blue)? Any suggestions as to why this happened? Thank you!
11 August 2024 3,770 4 View
Willett, Shenoy et al. (2021) have developed a brain computer interface (BCI) that used neural signal collected from the hand area of the motor cortex (area M1) of a paralyzed patient. The...
10 August 2024 7,180 0 View
I am developing a predictive model for a water supply network that involves 20 influencing points. However, I only have historical data for 10 out of these 20 points. I would like to know how to...
10 August 2024 4,005 2 View
I'm currently exploring the application of Python in textile engineering, specifically in areas like data analysis, process automation, and the development of smart textiles. I'm interested in...
10 August 2024 7,429 2 View
How can I use the cif data obtained from rietveld refinement extracted via gsas2, for microstructural analysis using ETEX software?
09 August 2024 7,718 0 View
Hello experts, Does anyone know any free software about retention index prediction ?
08 August 2024 7,403 2 View
Let's say we have a standard, regular hexagonal honeycomb with a 3-arm primitive unit cell (something like the figure attached; the figure is only representative and not drawn to scale). The...
07 August 2024 1,937 1 View
A fungal strain was treated with nanoparticles. We want to do an environmental SEM analysis. So could anyone share your views on preparing the sample? Thank you.
07 August 2024 5,307 1 View