nlfitGramm {gramm4R}R Documentation

Plot the nonlinear fitting of input data

Description

Plot, draw regression line and confidence interval, and show regression equation, R-square and P-value. The function includes the following models in the latest version: "line2P" (formula as: y=a*x+b), "line3P" (y=a*x^2+b*x+c), "log2P" (y=a*ln(x)+b), "exp2P" (y=a*exp(b*x)),"exp3P" (y=a*exp(b*x)+c), "power2P" (y=a*x^b), "power3P" (y=a*x^b+c), and "S" (y=a/(1+exp((x-b)/c))). Of each correlation pairs the figure who has the highest R-square among these models will be saved in a "pdf" file at working dirctory.

Usage

nlfitGramm(X,Y)

Arguments

X

Metabolome preproccessed data (SummarizedExperiment object).

Y

Microbiome preproccessed data (SummarizedExperiment object).

Details

nothing

Value

A file named "curve fit.pdf" will be created automatically.

Author(s)

Mengci Li, Dandan Liang, Tianlu Chen and Wei Jia

References

Bates, D. M., and Watts, D. G. (2007) Nonlinear Regression Analysis and its Applications. Wiley.

Greenwell B. M., and Schubert-Kabban, C. M. (2014) investr: An R Package for Inverse Estimation. The R Journal, 6(1), 90-100.

See Also

naiveGramm for naive correlation method; preGramm for pretreatment; Gramm: the whole strategy of this method.

Examples

data("metabolites")
data("microbes")
nlfitGramm(metabolites,microbes)

[Package gramm4R version 1.0.0 Index]