d2rsq.2: New implmentation of 'd2rsq'

Description Usage Arguments

Description

Adds parameter checks and expands features

Usage

1
2
d2rsq.2(d, p = NULL, var.names = NULL, expand = FALSE,
  return.df = FALSE)

Arguments

d

Either a data.frame which contains columns corresponding to Cohen's d and the proportion, or a numeric vector of Cohen's d values.

p

Numeric vector of proportions. The defualt value, NULL, should be used if d is a data.frame.

var.names

Ordered character vector with column names of columns corresponding to Cohen's d and the proportion. The name of the column corresponding to Cohen's d must come first var.names only needs to be specified if the columne names in the data.frame differ from "d" and "p".

expand

logical. If TRUE expand.grid is used to create all combinations of the provided Cohen's d values and proportions.

return.df

logical. If FALSE the function returns a vector of R squared values. If TRUE the function returns a data.frame containing all Cohen's d values and proportions with corresponding R squared values.


JamesCuster/pjam documentation built on June 27, 2019, 3:33 a.m.