Skip to content

Simulate phi-coefficient

2 messages · Bliese, Paul D LTC USAMH, Spencer Graves

1 day later
#
Please pardon my ignorance, but what's a "phi coefficient" in this 
context?  RSiteSearch("phi coefficient") produced 36 hits that seemed to 
discuss issues unrelated to your question.
	
	  If it refers to correlation, have you considered something like the 
following:


VECTOR1<-rep(c(1,0),c(15,10))
n <- length(VECTOR1)
library(MASS)

Sig <- array(c(1,.5, .5, 1), dim=c(2,2))
z <- mvrnorm(n, mu=c(0,0), Sigma=Sig)

p <- mean(VECTOR1)
q. <- qnorm(p)

Z <- 0+(z<q.)

	  hope this helps.
	  spencer graves
Bliese, Paul D LTC USAMH wrote: