Description Usage Arguments Examples
Extract the specific coefficient names or positions in a LVM
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 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 | coefType(x, ...)
## S3 method for class 'lvm'
coefType(x, ...)
## S3 method for class 'lvmfit'
coefType(x, level = 9, index.model = FALSE, ...)
## S3 method for class 'multigroup'
coefType(x, ...)
coefCov(x, ...)
## S3 method for class 'lvm'
coefCov(x, value = FALSE, keep.var = FALSE, ...)
## S3 method for class 'lvmfit'
coefCov(x, value = FALSE, keep.var = FALSE, ...)
## S3 method for class 'multigroup'
coefCov(x, value = FALSE, keep.var = FALSE, ...)
coefExtra(x, ...)
## S3 method for class 'lvm'
coefExtra(x, value = FALSE, ...)
## S3 method for class 'lvmfit'
coefExtra(x, value = FALSE, ...)
## S3 method for class 'multigroup'
coefExtra(x, value = FALSE, ...)
coefIndexModel(x, ...)
## S3 method for class 'lvm'
coefIndexModel(x, ...)
## S3 method for class 'lvmfit'
coefIndexModel(x, ...)
## S3 method for class 'multigroup'
coefIndexModel(x, ...)
coefIntercept(x, ...)
## S3 method for class 'lvm'
coefIntercept(x, value = FALSE, ...)
## S3 method for class 'lvmfit'
coefIntercept(x, value = FALSE, ...)
## S3 method for class 'multigroup'
coefIntercept(x, value = FALSE, ...)
coefRef(x, ...)
## S3 method for class 'lvmfit'
coefRef(x, value = FALSE, ...)
coefReg(x, ...)
## S3 method for class 'lvm'
coefReg(x, value = FALSE, ...)
## S3 method for class 'lvmfit'
coefReg(x, value = FALSE, ...)
## S3 method for class 'multigroup'
coefReg(x, value = FALSE, ...)
coefVar(x, ...)
## S3 method for class 'lvm'
coefVar(x, value = FALSE, ...)
## S3 method for class 'lvmfit'
coefVar(x, value = FALSE, ...)
## S3 method for class 'multigroup'
coefVar(x, value = FALSE, ...)
|
x |
a lvm model or a fitted lvm model |
... |
arguments to be passed to |
level |
level argument of |
value |
should the name of the coefficient be returned? Else return the coefficients |
keep.var |
should the variance parameters be output? |
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 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | #### regression ####
m <- lvm(Y~X1+X2)
e <- estimate(m, sim(m, 1e2))
coefType(m)
coefType(e)
coefType(e, level = -1)
coefCov(m)
coefCov(m, value = TRUE)
coefCov(m, keep.var = TRUE)
coefCov(m, value = TRUE, keep.var = TRUE)
coefIndexModel(m)
coefIndexModel(e)
coefIntercept(m)
coefIntercept(m, value = TRUE)
coefReg(m)
coefReg(m, value = TRUE)
#### LVM ####
m <- lvm()
regression(m) <- c(y1,y2,y3)~u
regression(m) <- u~x
latent(m) <- ~u
covariance(m) <- y1~y2
e <- estimate(m, sim(m, 1e2))
coefType(m)
coefType(e)
coefType(e, level = -1)
coefCov(m)
coefCov(m, value = TRUE)#'
coefCov(m, keep.var = TRUE)
coefCov(m, value = TRUE, keep.var = TRUE)
coefExtra(m)
coefIndexModel(m)
coefIndexModel(e)
categorical(m, K = 3) <- "X1"
coefExtra(m)
coefExtra(m, value = TRUE)
coefIntercept(m)
coefIntercept(m, value = TRUE)
coefIntercept(e)
coefReg(e, value = TRUE)
coefReg(e, level = -1, value = TRUE)
#### multigroup #####'
eG <- estimate(list(m,m), list(sim(m, 1e2),sim(m, 1e2)))
coefType(eG)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.