MLSIM2: method 2

Description Usage Details

View source: R/RcppExports.R

Description

nonparametric parametric

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
31
32
33
34
35
36
37
38
39
40
41
42
43
MLSIM2(
  x,
  y,
  cen,
  wt,
  nrow,
  nter,
  ny,
  nty,
  ty,
  tcodes,
  kdist,
  gamthr,
  lfix,
  nparm,
  intcpt,
  escale,
  e,
  maxit,
  kprint,
  dscrat,
  iscrat,
  devian,
  thetah,
  fsder,
  vcv,
  r,
  res,
  fv,
  theta,
  iarray,
  marray,
  wtnew,
  xnew,
  ynew,
  iret,
  retmat,
  numsim,
  numret,
  tspass,
  lrand,
  iersim
)

Details

method 2 simulation—nonparametric sampling/parametric inference

must send down a complete data set

parameter meanings same as in wqm_mlboth except the following:

can get rid of scalars like iervcv,ierfit,xlike,nobs

theta(nparm) true value of theta

thetah(nparm) space for thetahat

iarray(marray) scratch space needed to generate random weights

marray length of scratch space. must be at least equal in length to the number of rows in wt a computationally more efficient method is used if the number is larger than the sum of the weights

wtnew vector for the random weights for the simulation

xnew hold space for x

ynew hold space for y

iret amount of stuff to return

retmat(numret,numsim) matrix to return the results, one result per col

numsim number of simulations to be run

nrowr number of rows being returned in retmat

tspass(33) should be able to eliminate

lrand should be able to eliminate

iersim data space too small

need to send down data space big enough to cover all data situations


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