GENSIZ: Compute the sizes of parameter vectors

Description Usage Arguments Details

View source: R/RcppExports.R

Description

Given model information compute nparm and npard giving the sizes of parameter vectors.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
GENSIZ(
  kmod,
  kdist,
  kparv,
  nrvar,
  mrelat,
  nrelat,
  mnrvar,
  ncolx,
  kprint,
  nparm,
  npard,
  ier,
  nxd,
  intd,
  ipxcd,
  irelad,
  ilabp,
  ilabd,
  nregr,
  kgtall,
  llog,
  kmodp,
  npardm,
  nnum,
  kparm,
  iup,
  nterd,
  maxpd
)

Arguments

kmod

Integer model code (see Details)

kdist

Integer code representing distribution number usually in 1-12. kdist > 100> signifies a user specified distribution.

kparv

Integer vector giving parameter numbers that have regression relationships.

nrvar

Integer vector. nrvar[i] gives the number of columns in the x-matrix that are in the relationship for the parameter specified in kparv[i].

mrelat

Integer matrix with dimensions [mnrvar,nrelat] in which mrelat[i,j] gives the col of the x-matrix for the ith term of the jth relationship. i = 1,nrvar[j], j = 1,nrelat (see Details).

nrelat

Integer giving the number of regression relationships

mnrvar

Integer giving the number of columns in the x-matrix mnrvar = max(nrvar).

ncolx

Integer giving the number of columns in the x-matrix. This does not include the required column of ones (we think of the ones as column zero).

kprint

Integer giving the print code for debugging output (see Details).

nparm

Integer giving the sum of the parameters in all of the regression relationships plus any model parameters that do not depend on explanatory variables.

npard

Integer giving the number of parameters in the distributional model (i.e., for a particular combination of the explanatory variables.

ier

Three-digit integer giving error codes upon return (see Details)

nxd

Integer vector (length = 5) giving the number of dimensions in the x-matrix for each relationship

intd

Integer vector (length = 5) giving the number of relationships with an intercept term

ipxcd

Integer vector (length = 5) giving the columns in the x-matrix that are involved with each relationship

irelad

Integer vector (length = 5) giving the number of things (don't know yet).

ilabp

Integer vector of parameter labels (length 8*nparm) in this new version we copy over to stack and pass pointers below.

ilabd

Integer vector of distribution parmameters (length 8*nparm) in this new version we copy over to stack and pass pointers below.

Details

See Rcpp function genmax for more information on parameters than what is shown here.

kmod values:

0

Distribution kdist with one or more parameters related to explanatory variables.

1

Same as kmod = 0 with an lfp parameter.

2

Same as kmod = 0 with a doa parameter.

3

Steady-state model with distribution kdist plus exponential competing risk.

4

Proportional hazards model for distribution kdist plus explanatory variables for the power (or other) parameters.

Columns in the x-matrix may have a functional relationship with the location parameter, the scale parameter, or another model parameter. Each column in the matrix mrelat gives which columns in the x-matrix are related to a specific parameter. If all columns in the x-matrix are related to the location parameter only one column in mrelat will contain non-zero elements.

kprint values:

0

no printing at all

1

minimal printing

2

usual printing - no debugging

3

light debugging

4+

heavy debugging

ier error code values:


Auburngrads/SMRD documentation built on Sept. 14, 2020, 2:21 a.m.