adplus-dvertising
frame-decoration

Question

Which of the following code create n samples of size “size” with probability prob from the binomial?

a.

z <- rinom(n,size,prob)

b.

z <- rbinom(n,size,prob)

c.

z <- binom(n,size,prob)

d.

z >- nom(n,size,prob)

Posted under R Programming

Answer: (b).z <- rbinom(n,size,prob)

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of the following code create n samples of size “size” with probability prob from the binomial?

Similar Questions

Discover Related MCQs

Q. Which of the following code create a n item vector of random normal deviates?

Q. Which of the following statement can read csv files?

Q. Which of the following statement read a tab or space delimited file?

Q. Which of the following statement chose those objects meeting a logical criterion?

Q. Which of the following statement is another way to get a subset?

Q. Which of the following sort a dataframe by the order of the elements in B?

Q. Which of the following is Mac menu command?

Q. _____ list the variables in the workspace.

Q. ___________ remove all the variables from the workspace.

Q. Which of the following code will drop the nth column?

Q. Which of the following code drop the ith and jth column?

Q. Which of the following statement find cases with no missing values?

Q. Which of the following statement is normal distribution?

Q. which of the following statement gives cumulative sum?

Q. Which of the following is uniform distribution?

Q. Which of the following truncates real x to integers?

Q. Which of the following tests each element of x for membership in y?

Q. Which of the following finds the maximum value in the vector x, exclude missing values?

Q. Which of the following produces the variance covariance matrix?

Q. Which of the following will reverse the order of values in x?