R: Create a worker object for use as a worker with master...

CoxWorker {distcomp} | R Documentation

## Create a worker object for use as a worker with master objects generated by `CoxMaster`

### Description

`CoxWorker` objects are worker objects at each site of a distributed Cox model computation

### Usage

    CoxWorker

### Format

An `R6Class` generator object

### Methods

`CoxWorker$new(defn, data, stateful=TRUE)`

  Create a new CoxWorker instance object using formuala and data. The stateful flag indicates whether the object state is to be saved between iterations

`logLik(beta, ...)`

  Compute the partial log likelihood for the local data for the input parameter vector beta. The return value is a named list with three components: `value` contains the value of the log likelihood, `gradient` contains the score vector, and `hessian` contains the estimated hessian matrix

`var(beta, ...)`

  Compute the variance of the parameter vector beta

`kosher()`

  Check if inputs and state of object are sane. For future use

`getP()`

  Returns the dimension of the parameter vector

`getStateful()`

  Returns `TRUE` if object is stateful, else `FALSE`

### See Also

`CoxMaster` which goes hand-in-hand with this object

[Package distcomp version 1.1 Index]