U_equation: Form the Estimating Equation

Description Usage Arguments Value References

View source: R/TVQRLB_main.R

Description

Set up an estimating equation.

Usage

1
U_equation(beta, dataset, denom, qtile, weight, norm = TRUE)

Arguments

beta

The parameter estimate.

dataset

The survival data.

denom

The denominator used in the estimating equation.

qtile

The quantile level used to conduct the quantile regression.

weight

The weight of each observation. Default is equal weights.

norm

Whether the norm of the function value should be returned. TRUE: return the norm; FALSE: return the function value. Default is TRUE.

Value

This function returns the function value (a vector of length n+1) of the estimating equation evaluated at "beta" if norm = FALSE; otherwise returns the norm of it.

References

Cai, Z. and Sit, T. (2018+), "Quantile regression model with time-varying covariates under length-biased sampling," Working Paper.


ZexiCAI/TVQRLB documentation built on Dec. 30, 2019, 6:02 p.m.