powered by
used as a helper function to return number of categories of categorical variable
NumCat(ColDes, DataMat, NADes)
which column number is the number for the data vector for which number of unique categories to be returned
this the dataframe or can be a matrix of data with different variables as the columns
this is the value to be used for the missing category of data
returns numeric value of number of unique categories excluding missing category for vector of data
helper function which specifies number of unique categories excluding missing category of a column of a dataframe or matrix
No References
# NOT RUN { InitD=Simulate(MissingYN=1) NumCat(2,InitD,c(-99)) # }
Run the code above in your browser using DataLab