File: partialcor.Rd

package info (click to toggle)
r-cran-lava 1.7.2.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,636 kB
  • sloc: sh: 13; makefile: 2
file content (38 lines) | stat: -rw-r--r-- 794 bytes parent folder | download | duplicates (4)
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
26
27
28
29
30
31
32
33
34
35
36
37
38
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/partialcor.R
\name{partialcor}
\alias{partialcor}
\title{Calculate partial correlations}
\usage{
partialcor(formula, data, level = 0.95, ...)
}
\arguments{
\item{formula}{formula speciying the covariates and optionally the outcomes
to calculate partial correlation for}

\item{data}{data.frame}

\item{level}{Level of confidence limits}

\item{...}{Additional arguments to lower level functions}
}
\value{
A coefficient matrix
}
\description{
Calculate partial correlation coefficients and confidence limits via Fishers
z-transform
}
\examples{

m <- lvm(c(y1,y2,y3)~x1+x2)
covariance(m) <- c(y1,y2,y3)~y1+y2+y3
d <- sim(m,500)
partialcor(~x1+x2,d)

}
\author{
Klaus K. Holst
}
\keyword{models}
\keyword{regression}