How to apply weights in rpart?
问题 I have this data on houses from the Kaggle practice competition and I'm using rpart to train a simple first model to predict the sale price. The model is not correctly identifying sales where the sale condition was abnormal or a down payment. Therefore, I'd like to increase the importance of this variable which is obviously overlooked in the model. I'm assuming this is done by using the "weights" parameter but how is this parameter used? How can I pinpoint which variables I want to have a