dcor | R Documentation |
summary, tables, and correlations for data frames
dcor(data, y = NULL, x = NULL, use = "pairwise.complete.obs", ...)
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 |
Klaus K. Holst and Thomas Scheike
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.