formulae_cleaned: Formulae from variable combinations without correlated...

Description Usage Arguments Value

View source: R/utils.r

Description

Build the formulae (as strings) from variable names

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
formulae_cleaned(
  formula,
  dep = NULL,
  vars = NULL,
  nullmodelterm = "1",
  minsize = 1,
  maxsize = NULL,
  data,
  threshold = 0.6,
  use = "everything",
  method = c("pearson", "kendall", "spearman")
)

Arguments

formula

formula with all the terms (beyond optimal model)

dep

name of the dependent variable. If the formula is specified, this argument is not considered.

vars

character vector with the names of the independent variables (wihtout nullmodel term). If the formula is specified, this argument is not considered.

nullmodelterm

to specify in case of an always required fixed term (should not be included in the vars)

minsize

minimum size of the formula (number of independent variables)

maxsize

maximum size of the formula (number of independent variables). NULL means unrestricted.

data

dataframe holding the dataset with the column names corresponding to vars

threshold

correlation threshold

use

an optional character string giving a method for computing covariances in the presence of missing values. This must be (an abbreviation of) one of the strings "everything", "all.obs", "complete.obs", "na.or.complete", or "pairwise.complete.obs"

method

a character string indicating which correlation coefficient is to be computed. One of "pearson" (default), "kendall", or "spearman", can be abbreviated

Value

list of


pezzacolori/boris-r-misc documentation built on Sept. 14, 2021, 1:46 a.m.