Skip to content

quickpred seemingly not detecting strong correlations & looking for faster way to specify "include" variable list #496

Answered by thomvolker
ivmcphail asked this question in Q&A
Discussion options

You must be logged in to vote

If you install the reprex package, you can simply copy all your (relevant) code to your clipboard (i.e., [ctrl + c] the code you use), and subsequently run reprex::reprex() in the R-console (make sure that this selection of code runs in your R environment, otherwise reprex::reprex() will just throw errors at you). This creates an entirely reproducible script, containing both the input from the script, and the output.

Hope this helps, because on the basis of a single line of code, it is near impossible to identify what goes wrong with quickpred().

With regard to your second problem, you could use colnames(rtc.pre)[6:10], which creates a vector of containing the 6th to 10th column name.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@ivmcphail
Comment options

Comment options

You must be logged in to vote
1 reply
@ivmcphail
Comment options

Answer selected by gerkovink
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants