screen.vox: Screen voxels for a voxelwise smoothing object

Description Usage Arguments Value Author(s) See Also Examples

Description

Inputs a voxelwise smoothing object as produced by semipar4d, and outputs an object containing the results for a subset of the voxels.

Usage

1
screen.vox(semi.obj, arr4d, include)

Arguments

semi.obj

an object of class semipar.mp.

arr4d

the 4-dimensional array used to generate the object.

include

a logical matrix indicating which points (or voxels) should be included.

Value

a modified version of semipar.obj, with pointwise coefficients (coef component), pointwise degrees of freedom (pwdf), pointwise log smoothing parameter (pwlsp), and pointwise variance estimate (sigma2) for the points specified by include only.

Author(s)

Lei Huang huangracer@gmail.com and Philip Reiss phil.reiss@nyumc.org

See Also

semipar.mp

Examples

1
2
3
4
5
6
7
data(test)
d4 = test$d4
x = test$x
vw.obj = semipar4d(d4, formula = ~sf(x), data = data.frame(x = x), lsp=-5:5)

# Include only the first 600 voxels
sv = screen.vox(vw.obj, d4, rep(1:0, c(600,400)))

vows documentation built on May 2, 2019, 9:26 a.m.