k_yf: K constant and Plateau from Non-Linear Fit

Description Usage Arguments Examples

View source: R/k_yf.R

Description

Creates an object with the k and yf values

Usage

1
k_yf(nls_df, leg)

Arguments

nls_df

non-linear fit data frame

leg

which leg group

Examples

1
2
3
4
5
6
7
8
9
  df <- dat %>%
group_by(leg) %>%
  do(fit = nls(ratio ~ SSasymp(week, yf, y0, log_k), data = .)) %>%
  tidy(fit) %>%
  select(leg, term, estimate) %>%
  spread(term, estimate) %>%
  mutate(k = exp(log_k))

L_k_yf <- k_yf(df, "L")

tsoleary/proteomixr documentation built on July 19, 2019, 8:37 a.m.