0
$\begingroup$

My dataset contains some stocks and some bitcoin titles. I would like to replace NA data (normal stocks are not traded on sat. and sun.) using a regression on the stock itself. How can i do this?

$\endgroup$
1
  • $\begingroup$ What you try exactly to do and what way/software you try to accomplish the imputation ? How does your data look ? $\endgroup$
    – n1tk
    Oct 6, 2018 at 1:42

1 Answer 1

1
$\begingroup$

Set the column with missing values as your target.

Remove rows where your target is null.

Train a regression model that predicts your target using the rest of your features.

Replace missing values with this regression model's predictions.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.