R/SimulateData3P.R

Defines functions SimulateData3P

Documented in SimulateData3P

#Data function for three papernts (P1,P2,P3)

SimulateData3P <- function(N,P1,P2,P3, b0.1, b1.1, b1.2,b1.3,sd.1) {

  t <- rnorm(n = N,
             mean = b0.1 + b1.1*P1+b1.2*P2+b1.3*P3,
             sd = sd.1)

  return(t)

}

Try the MRPC package in your browser

Any scripts or data that you put into this service are public.

MRPC documentation built on April 11, 2022, 5:10 p.m.