dcor: summary, tables, and correlations for data frames

Description Usage Arguments Author(s) Examples

View source: R/daggregate.R

Description

summary, tables, and correlations for data frames

Usage

1
dcor(data, y = NULL, x = NULL, use = "pairwise.complete.obs", ...)

Arguments

data

if x is formula or names for data frame then data frame is needed.

y

name of variable, or fomula, or names of variables on data frame.

x

possible group variable

use

how to handle missing values

...

Optional additional arguments

Author(s)

Klaus K. Holst and Thomas Scheike

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
data("sTRACE",package="timereg")
dt<- sTRACE
dt$time2 <- dt$time^2
dt$wmi2 <- dt$wmi^2
head(dt)

dcor(dt)

dcor(dt,~time+wmi)
dcor(dt,~time+wmi,~vf+chf)
dcor(dt,time+wmi~vf+chf)

dcor(dt,c("time*","wmi*"),~vf+chf)

kkholst/mets documentation built on Nov. 22, 2017, 10:06 a.m.