शुरू करेंमुफ़्त में शुरू करें

Simulating a probit

During the previous exercise, you simulated a logit. During this exercise, you will simulate a probit. First, you will convert from the probit scale to a probability. Second, you will use this probability to simulate from a binomial distribution.

यह अभ्यास पाठ्यक्रम का हिस्सा है

Generalized Linear Models in R

पाठ्यक्रम देखें

अभ्यास निर्देश

  • Using function pnorm() to convert 0 on the probit scale to a probability. Save the output as p.
  • Using the rbinom function, generate 10 samples (n = 10) with a size of 1 (size = 1) using the probability p.

इंटरैक्टिव व्यावहारिक अभ्यास

इस अभ्यास को इस नमूना कोड को पूरा करके आज़माएँ।

# Convert from the probit scale to a probability
p <- ___

# Simulate a probit
___
कोड संपादित करें और चलाएँ