momentLVMr: Moments for a reduced lvm model

Description Usage Arguments Format Details

Description

Compute the likelihood, score and hessian of a reduced lvm model

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

Arguments

x, object

lvm.reduced-object

p

current parameter estimate

data

dataset

...

additional arguments

indiv

should the individual contribution be returned? Else average over the observations

implementation

default is R. If set to cpp all the computation of the gradient is made in a C++ routine.

n

number of observations

type

method used to compute the hessian

Format

An object of class character of length 1.

Details

this function assumes that the external parameters in p are at the end of the vector


bozenne/lavaReduce documentation built on May 24, 2019, 3:05 a.m.