Before running a regression, a researcher uses the command 'index <- sample(seq(1:2),1:nrow(df), prob=c(.7,.3), replace=TRUE)'. What is the primary purpose of this step?单项选择题

A

To identify and remove 70% of the missing data.

B

To select a random subset of variables to include in the model.

C

To create a training dataset (70%) for building the model and a testing/validation dataset (30%) to evaluate its performance.

D

To increase the R-squared value by reducing the sample size.

登录即可查看完整答案

我们收录了全球超50000道真实原题与详细解析,现在登录,立即获得答案。

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!