Learn R Programming

gRc (version 0.4-3.2)

fitInteral: Functions used in connection with fitting of RCOX models

Description

This is an overview over core functions used in connection with fitting of RCOX models. The functions described here will typically not be directly called by the user.

Usage

scoring (object, K0, control = object$control, maxit=control$maxouter,
         trace = object$trace)
ipm     (object, K0, control = object$control, trace=object$trace)
matching(object, control=object$control, trace=object$trace)

Arguments

object

An RCOX model object (an object of class rcox.Internal)

K0

An initial value for K

control

A list controlling the fitting algorithms.

maxit

Maximal number of scoring iterations

trace

Controls various diagnostics print outs. A debugging feature not intended for the user.

Value

A list with fitted values (K, logL etc).

See Also

fit, rcox

Examples

Run this code
# NOT RUN {
gm  = ~al:an:st
vcc = list(~me+st, ~ve+an, ~al)
ecc = list(~me:ve+me:al, ~ve:al+al:st)
data(math)

m1 <- rcox(gm=gm, vcc=vcc, ecc=ecc, data=math, fit=FALSE)
f1 <- matching(m1)

## Use f1$K as starting value
scoring(m1, K0=f1$K)
ipm(m1, K0=f1$K)

# }

Run the code above in your browser using DataLab