File: phi.range.Rd

package info (click to toggle)
raschsampler 0.8-4-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 336 kB
  • ctags: 14
  • sloc: f90: 400; makefile: 1
file content (25 lines) | stat: -rwxr-xr-x 618 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
\name{phi.range}
\alias{phi.range}
\title{ Example User Function }
\description{
  Calculates the \eqn{R_\phi} statistic, i.e., the range of
  the inter-column correlations (\eqn{\phi}-coefficients) for
  a binary matrix.
}
\usage{
phi.range(mat)
}
\arguments{
  \item{mat}{ a binary matrix }
}
\value{
  the range of the inter-column correlations
}
\examples{
ctr <- rsctrl(burn_in = 10, n_eff = 5, step=10, seed = 123, tfixed = FALSE)
mat <- matrix(sample(c(0,1), 50, replace = TRUE), nr = 10)
rso <- rsampler(mat, ctr)
rso_st <- rstats(rso,phi.range)
print(unlist(rso_st))
}
\keyword{misc}