Ordinal Variable -
I have a query regarding ordinal variables. For Regression modelling, we need to do label encoding for ordinal variables and do we also need to mention the order of the label encoded variable ?
StepAIC Function -
My second query is that for significant variable selection using the StepAIC function, do we need to first divide the data into train and test dataset and then run the StepAIC function on train dataset only or we can the run the StepAIC on the whole data and then create a model on the selected variables ?