Set Seed function in R language.
In R programming at times to perform statistical tests one needs to generate random numbers or values for the specified variables. When generating random numbers, it is difficult to contain the random generation of numbers, especially when calling a function to be performed in the same set of randomly generated numbers. The random numbers generated are dependent on the statistical test you wish to impose based on the hypothesis which is to be tested. The function in R that generates random numbers is known a pseudo-random generator.
When using this random number generating feature in R programming, the set seed command enables the user to set constraints for generating random numbers for a statistical test. The set seed command is assigned an index whereby the generated sequence of numbers is stored. Therefore, whenever the set of random numbers is called based on the stipulated index the values generated remain the same. However, if the number of values exceeds the previously generated numbers then the sequences used will still be the same and generated additional values in line with the previous values. This function in R improves the efficiency of performing tests such that different tests can be performed on the same array of numbers.
Learn R Language (Data analytics)-https://www.udemy.com/mastering-r-for...
To learn SAS (Data analytics language) Skills visit-https://www.udemy.com/sas-for-beginne...
Learn Data visualisation skills- https://www.udemy.com/data-visualisat...
To kick start your career in analytics please visit https://www.a-leap.com for more information.
For more such videos please subscribe our channel...!