independent_lm_tests: Test all combinations of levels

Description Usage Arguments Details Value Author(s) See Also

View source: R/independent_lm_tests.r

Description

Internal function.

Usage

1
2
independent_lm_tests(Dat, f1, strain, StartP.levels = c("minusP", "plusP"),
  EndP.levels = c("100uM", "30uM"))

Arguments

Dat

A data.frame containing the data of one bacterial treatment. Unsupported behaviour would occur if more than one bacterial treatment is included. The data.frame must contain columns: 'Bacteria', 'StartP' and 'EndP'. The 'Bacteria' column must be either a factor or a character vector containing only values 'No Bacteria' and '+Bacteria'

f1

formula for test. It will be passed to the lm function

strain

A character string, indicating strain name.

StartP.levels

new names for StartP levels

EndP.lvels

new names for EndP levels.

Details

This functions takes the data from one bacterial treatment makes an independent linear model for all observation on each combination of levels between two variables.

Value

A list of data frames. Each data.frame contains a column called 'Strain' which indicates the strain ID. An also contains m more columns (m = length(StartP.levels)*lenght(EndP.levels)). Each element of the list stores the either the coefficiennt for the bacterial treatment (Res), its p-value (Pval), or its standard error (SE).

Author(s)

Sur Herrera Paredes

See Also

lm


surh/wheelP documentation built on May 7, 2019, 10:11 a.m.