pepfit: Fit a model

Description Usage Arguments Value See Also Examples

View source: R/pep8.R

Description

Fit a model of how mass changes over time of a specific element

Usage

1
2
3
4
5
6
7
8
pepfit(TimePoint, RelAb, Channel, data, Elements, Abundance = NULL,
  se = FALSE, time = exists("proc.time"), maxit = 1000,
  setup = parsetup.default, time.unit = NA, name = NULL,
  method = c("binomial", "regression"), useRelAb = FALSE, ...)

makeFit(seq, relAb, isotope.method, ...)

getFit(fit)

Arguments

TimePoint

The timepoint the observation was taken at

RelAb

The relative abundance of that observation

Channel

The number of heavy elements for that the observation

data

An optional data frame to take the TimePoint, RelAb, and Channel variables from. If names for any of the three previous variables are missing, they are looking for in the data frame using these specific nams. Also, can be RelAbTimes object from relAbForTimes, in which the three previous variables are ignored.

Elements

A list of elements known to be in this peptide and their quantity. The first element is the one that will be allowed to change relative abundances over time.

Abundance

A list of elements and their natural abundance. C, H, O, N, and S need not be included, as those natural abundances are included by default.

se

Boolean, set TRUE to compute standard errors using the Hessian from optim

time

Boolean, set FALSE to not measure elapsed time

maxit

Maximum iterations to allow optim

setup

The desired setup function

time.unit

For use in plots and other output

name

For use in plots and other output

method

Experimental

useRelAb

Use relative abundance instead of proportions

...

Additional parameters passed to the setup function

seq

the sequence to get the relative abundance for

relAb

the relative abundance to use

isotope.method

desired method, passed as type to pepfit

fit

a pepfit

Value

A list of S3 class pepfit, with elements

par

Fitted value of desired parameters

value

Fitted likelihood

counts

count data from optim function

convergence

convergence information from optim function

message

message from optim function

Day

The TimePoint input values

RelAb

RelAb, from input

Count

Count, from input

Element

The name, count, and natural abundance of the changing element

Elements

Elements, from input

Abundance

the natural abundance of each element used

NatAb

the combined natural abundance over non-changing elements

p

the output from the setup function

setup

the setup function used

parmatrix

the values of all parameters, both fitted and specified, as in matrix form

time

Elapsed time

See Also

relAbForTimes

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
data(isodata)
a <- pepfit(TimePoint, RelAb, Channel, data=isodata, Elements=list(N=12,C=45,H=73,O=15))
summary(a)
plot(a)
 
data(isoincorp)
b <- pepfit(TimePoint, RelAb, Channel, data=isoincorp,
type="incorporation", Elements=list(N=12,C=45,H=73,O=15))
summary(b)
plot(b)

HegemanLab/ProteinTurnover documentation built on May 6, 2019, 11:50 p.m.