How to use replacement node to replace null with zero?
cannot google it, only find replace zero with missing
Thank you
Ken - Another option for you may be to use the Impute node to replace all missing values throughout the data set with 0. This node does not offer the same level of control over the replacement criteria on a per variable basis as the Replacement node does, but it does provide other possibly more meaningful options for the replacement value (other than a default constant like 0). If you haven't already, you may want to consider imputing missing values with the Impute node. It all depends on how you intend to analyze the data.
To use the Impute node to simply replace all missing values (for all variables) with 0, set the "Default Input Method" (or Default Target Method) to "Default Constant Value" and set the desired value in the entry provided below that.
Good luck with your analysis.
Brett
Register today and join us virtually on June 16!
sasglobalforum.com | #SASGF
View now: on-demand content for SAS users
I think you are looking for OPTION MISSING=0;
Ken - Another option for you may be to use the Impute node to replace all missing values throughout the data set with 0. This node does not offer the same level of control over the replacement criteria on a per variable basis as the Replacement node does, but it does provide other possibly more meaningful options for the replacement value (other than a default constant like 0). If you haven't already, you may want to consider imputing missing values with the Impute node. It all depends on how you intend to analyze the data.
To use the Impute node to simply replace all missing values (for all variables) with 0, set the "Default Input Method" (or Default Target Method) to "Default Constant Value" and set the desired value in the entry provided below that.
Good luck with your analysis.
Brett
Register today and join us virtually on June 16!
sasglobalforum.com | #SASGF
View now: on-demand content for SAS users
NuLL is not equal to missing. The concepts in a RDBMS and statistical environment are different. What are you doing?
Thank for letting me know, basically I have null in the field revenue from client, and it is null because it cannot find any revenue, so they can be replace with 0.
I then will do a cluster analysis
Thank You
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Use this tutorial as a handy guide to weigh the pros and cons of these commonly used machine learning algorithms.
Find more tutorials on the SAS Users YouTube channel.