Question

How can I make my own function for rbinom(n, size, prob) in R. So, basically I...

How can I make my own function for rbinom(n, size, prob) in R.

So, basically I want to build my own rbinom function that gives me the same result as rbinom that's built in R software.

0 0
Add a comment Improve this question Transcribed image text
Know the answer?
Add Answer to:
How can I make my own function for rbinom(n, size, prob) in R. So, basically I...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Can someone help me with a simple C programming problem? How do I make some code...

    Can someone help me with a simple C programming problem? How do I make some code like this into its own function? Currently it's pat of the main function, but I want to be able to call it. If you could help me with the prototype, function call, and definition, I'd really appreciate it. Thanks!    if(some_input=='r'){ someone = 0; } else if(some_input=='p'){ someone = 1; } else if(some_input=='s'){ someone = 2; } else if(some_input=='q' || some_input=='Q'){ break; // Breaks...

  • please show your work so I can do it on my own for the next few...

    please show your work so I can do it on my own for the next few problems. Thank you so much! 3. How many milliliters of a 0.25 M NaOH solution are required to make 180 mL of 0.065 M NaOH solution? 5pts

  • Currently, my image size is 960 x 515 How do I make it so my header...

    Currently, my image size is 960 x 515 How do I make it so my header image covers the whole width of my page? The code for it is above skistowe Home Add a Skier Add a Trail! Tables 9 header{ background-repeat: no-repeat; max-width: 85%; padding: 145px; background-image: url("../Images/gondala2.jpg"); #site-header { margin-bottom: 1em; min-width: min-content; text-align: center; flex-shrink: 0; #site-h1 { font-family: Optima; font-size: 4em; letter-spacing: 7px; padding-bottom: 0.2em; padding-top: 65px;

  • how I can make Average filter without built-in function for image on matlab

    how I can make Average filter without built-in function for image on matlab

  • I want make keyboard's font size become to 50pt, so I wrote the css code: span...

    I want make keyboard's font size become to 50pt, so I wrote the css code: span .test { font-size:50pt; } but, it doesn't work, why? Can you help me with this? You can't change the html code. span class="test" keyboard /span〉 〈div class-"test"> mouse

  • How can I make this into a recursive function (C++)?? //Write a function that, given positive...

    How can I make this into a recursive function (C++)?? //Write a function that, given positive integers 1 <= n <= 10^4 and 1 <= s <= n as input, returns the sum of the last s elements in the sequence from 1 to n (inclusive). unsigned long int suffix_sum(unsigned int n, unsigned int s){ unsigned long int sum = 0,r=(n-s)+1; while (r<=n){ sum = sum + r; r++; } return sum; return 0; }

  • how would i create the function apply in scheme? A my-apply function that does the same...

    how would i create the function apply in scheme? A my-apply function that does the same thing as it Higher-order Functions A function is called a higher-order function (also called a functional form) if it takes a function as an argument or returns a newly constructed function as a result Scheme has several built-in higher-order functions, for example apply takes a function and a list and applies the function with the elements of the list as arguments input (apply (3...

  • Hi, basically I have a spreadsheet like this, that goes for several cells later as well. can you please tell me how can...

    Hi, basically I have a spreadsheet like this, that goes for several cells later as well. can you please tell me how can I calculate the false positive rate for these 16 observations in Excel? I would really appreciate it. I just want to know the way, and what it represents. Fraud (1-Y, 0-N) R1 R2 R5 R6 R8 R9 R10 R18 R20 R24 R26 R27 R29 R30 R31 R32 0101000 Fraud (1-Y, 0-N) R1 R2 R5 R6 R8 R9...

  • How can i upload my data sheet it is to long so it does not allow...

    How can i upload my data sheet it is to long so it does not allow me to attach?

  • in C++ and also each function has its own main function so please do the main...

    in C++ and also each function has its own main function so please do the main function as well. Previously when i asked the question the person only did the function and didn't do the main function so please help me do it. 1-1. Write a function that returns the sum of all elements in an int array. The parameters of the function are the array and the number of elements in the array. The function should return 0 if...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT