Description Usage Arguments Details Value See Also Examples
Fits the linear ERR model on a dataset
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
data |
data frame containing matched case-control data, with a number of columns for doses to different locations, a column containing matched set numbers, a column containing the case's tumor location (value between 1 and the number of locations, with location x corresponding to the x-th column index in |
doses |
vector containing the indices of columns containing dose information. |
set |
column index containing matched set numbers. |
status |
column index containing case status. |
loc |
column index containing the location of the matched set's case's second tumor. |
corrvars |
vector containing the indices of columns containing variables to be corrected for. |
repar |
reparametrize to β=exp(ξ)? Defaults to |
ccmethod |
choice of method of analysis: one of meandose, CCML, CCAL or CL. Defaults to CCAL |
initpars |
initial values for parameters, default is 0 for all parameters. If supplying a different vector, use a vector with an initial value for β or ξ, one for all of the other location effects and one for each other covariate (in that order). Note that if |
fitopt |
list with options to pass to |
fitNull |
boolean: also fit model without dose effect? Defaults to |
useOld |
if TRUE, a previous (slower) implementation of the log-likelihood function will be used. Defaults to |
uplimBeta |
upper limit for β=exp(ξ), default value 5. This is used for constraining the MLE estimation in some settings and for the jackknife inclusion criteria, and can be infinite except when Brent optimization is used (see help for |
This is a stripped down version of linearERR
, and should only be used when that function does not suffice. For more details refer to the help of linearERR
.
Object with components:
fit |
object produced by |
nullfit |
fit without dose effect produced by |
proflik |
profile likelihood: one-dimensional function of β or ξ. Note that the optimization used is the same as for the MLE, leading to one-dimensional Nelder-Mead optimization in certain cases (see details of |
linearERR
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | data(linearERRdata1)
fitmeandose <- linearERRfit(data=linearERRdata1, set=1, doses=2:6,
status=8, loc=7, corrvars=9, repar=FALSE, ccmethod="meandose")
fitCCML <- linearERRfit(data=linearERRdata1, set=1, doses=2:6,
status=8, loc=7, corrvars=9, repar=FALSE, ccmethod="CCML")
fitCCAL <- linearERRfit(data=linearERRdata1, set=1, doses=2:6,
status=8, loc=7, corrvars=9, repar=FALSE, ccmethod="CCAL")
fitCL <- linearERRfit(data=linearERRdata1, set=1, doses=2:6,
status=8, loc=7, corrvars=NULL, repar=FALSE, ccmethod="CL")
fitmeandose$fit$par
fitCCML$fit$par
fitCCAL$fit$par
fitCL$fit$par
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.