Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
r_test [2021/05/26 00:52] – [Question 3] adminr_test [2021/10/14 20:04] – [Question 3] admin
Line 47: Line 47:
 Write a function ''most.impact()'' that takes as input two ''k1'' and ''n1'' integers, and in the list of ''n1'' most mutated genes, finds the names of the ''k1'' genes with the best impact. Your function should return the names of the best ''k1'' genes (i.e., the set of genes with the best log-rank p-value), and also their impact. Run your function for ''k1=3'', and ''n1=3'', ''10'', and ''100''. What is the biological interpretation of your results? Write a function ''most.impact()'' that takes as input two ''k1'' and ''n1'' integers, and in the list of ''n1'' most mutated genes, finds the names of the ''k1'' genes with the best impact. Your function should return the names of the best ''k1'' genes (i.e., the set of genes with the best log-rank p-value), and also their impact. Run your function for ''k1=3'', and ''n1=3'', ''10'', and ''100''. What is the biological interpretation of your results?
  
-__Hint:__ Use the ''utils::c?m?n()'' function, where you need to guess the question marks.+__Hint:__ Solution 1: Use the ''utils::c?m?n()'' function, where you need to guess the question marks.\\ 
 +Use another R function that uses ''utils::c?m?n()''
 + 
 +Deliverables are similar to question 2 plus you need to guess the above questions marks and copy the line of the code that includes them in your pdf file.
  
 **Bonus**: Implement the ''utils::c?m?n()'' function yourself using dynamic programming. Compare the running time of your implementation vs. the utils implementations using large inputs that require at least a couple of minutes. **Bonus**: Implement the ''utils::c?m?n()'' function yourself using dynamic programming. Compare the running time of your implementation vs. the utils implementations using large inputs that require at least a couple of minutes.