BookmarkSubscribeRSS Feed
deysealves
Calcite | Level 5

O que você está fazendo? a analise é para predizer valores de um composto em amostras. Você tem os valores preditos adicionados todos iguais. Alguém pode me ajudar?

porque os valores aparecem a igual e que fazem para corrigi-los.

obrigada..

 

 

 

PROC PLS DATA = composto MÉTODO = pls nfac = 12 cv = bloco (7) PLOTS = (diagnósticos); 
MODELO COMPOSTO = a1-a1401; 
output out = preditos2 p = p_composto; 
corre; 
ods gráficos desativados; 

proc print data = preditos2; 
var p_composto composto; 
corre;

 

 

3 REPLIES 3
PaigeMiller
Diamond | Level 26

From Google Translate:

 

Hi, I'm trying to do some analysis using these commands below. the analysis is for predicting values of a compound in samples. However, the predicted values are all the same. Can someone help me?

they know why these values appear the same and what I do to correct them.

thanks .

It's possible that the cross-validation determined that the best fitting model was the mean of the Y values, and that no other fit predicted as well. (In other words, it's all noise, there's no structure that can be used to predict).

 

Show us the cross-validation part of the output of PROC PLS. Click on the {i} icon and then copy and paste the cross-validation into that window.

--
Paige Miller
PaigeMiller
Diamond | Level 26

Adding: one reason you might get this constant prediction is if you have a serious outlier(s) in your data, this may result in the conclusion that you can't predict anything, and so removing the outlier(s) may allow predictability.

--
Paige Miller

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!

Register now

Develop Code with SAS Studio

Get started using SAS Studio to write, run and debug your SAS programs.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 1006 views
  • 1 like
  • 3 in conversation