Learn R Programming

twidlr (version 0.0.0.9000)

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

Description

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

Usage

crq(data, formula, ...)

# S3 method for crq 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

crq

Examples

Run this code
set.seed(1968)
n <- 200
x <- rnorm(n)
y <- 5 + x + rnorm(n)
c <- 4 + x + rnorm(n)
d <- (y > c)
dat <- data.frame(y = y,x = x,c = c,d = d)
rm(x,y,c,d)
f2 <- crq(dat,survival::Surv(pmax(y,c), d, type = "left") ~ x,method = "Portnoy")

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

Run the code above in your browser using DataLab