Learn R Programming

mcprofile (version 0.0-9)

mcpcalcRatio: Construction of Multiple Contrast Profiles for Ratios of Parameters

Description

Calculates signed root deviance profiles given a glm or lm object. The profiled parameters of interest are defined by providing a contrast matrix.

Usage

## S3 method for class 'lm':
mcpcalcRatio(object, CMn, CMd, control=mcprofileControl(), margin=NULL, method="BFGS")
## S3 method for class 'glm':
mcpcalcRatio(object, CMn, CMd, control=mcprofileControl(), margin=NULL, method="BFGS")
## S3 method for class 'nls':
mcpcalcRatio(object, CMn, CMd, control=mcprofileControl(), margin=NULL, method="BFGS")

Arguments

object
An object of class glm or lm
CMn
A numerator contrast matrix with the number of columns equal to the number of estimated parameters. Contrast coefficients should be -1 and 1, respectively. Providing row names is recommendable.
CMd
A denominator contrast matrix equivalent to the numerator matrix.
control
A list with control arguments. See mcprofileControl.
margin
Numeric vector of margins, defining the profiling range. If NULL no extra margin is considered.
method
"BFGS"

Value

Details

The signed root deviance is calculated for the ratio of parameters and interpolated by interpolation splines.

See Also

profile.glm, profile.nls, sci.ratio, interpSpline, contrMatRatio