PLSR_from_file: Partial Least Squares Regression from file Last mod: 3/17/20,...

View source: R/PLSR_from_file.R

PLSR_from_fileR Documentation

Partial Least Squares Regression from file Last mod: 3/17/20, ksheu

Description

Writes out Xscores, Xloadings, and PVE. Plot scores output with plot_pls()

Usage

PLSR_from_file(
  file,
  sample.names,
  sample.type,
  y.response,
  title = "PLSR",
  comps = 5,
  scale = F,
  comp.x = "comp.1",
  comp.y = "comp.2",
  labels = F,
  fread = F
)

Arguments

file

file for X matrix

sample.names

vector of names of the samples

sample.type

vector of sample groups

y.response

numeric vector of response values in same order as samples

title

title of the plot

comps

number of components to compute

scale

default=F

comp.x, comp.y

comps to display

labels

label the plot, default = F

fread

default = F


graeberlab-ucla/glab.library documentation built on Oct. 28, 2024, 10:48 a.m.