Learn R Programming

twidlr (version 0.0.0.9000)

nlrq: data.frame-first formula-second method for

Description

This function passes a data.frame, formula, and additional arguments to nlrq.

Usage

nlrq(data, formula, ...)

# S3 method for nlrq predict(object, data, ...)

Arguments

data
Data frame (or object that can be coerced to one) containing the variables in the model
formula
formula (or object that can be coerced to one) describing the model to be fitted
...
Additional arguments to pass to model function
object
Fitted model

See Also

nlrq

Examples

Run this code
Dat <- NULL
Dat$x <- rep(1:25, 20)
set.seed(1)
Dat$y <- SSlogis(Dat$x, 10, 12, 2) * rnorm(500, 1, 0.1)

fit <- nlrq(data = Dat,formula = y ~ SSlogis(x, Asym, mid, scal),tau = 0.5)
summary(fit)

# Help page for function being twiddled
?quantreg::nlrq

Run the code above in your browser using DataLab