hier.phd.nt {hierSDR} | R Documentation |
Main hierarchical SDR fitting function
Description
fits hierarchical SDR models
Usage
hier.phd.nt(
x,
y,
z,
z.combinations,
d,
weights = rep(1L, NROW(y)),
constrain.none.subpop = TRUE,
pooled = FALSE,
...
)
Arguments
x |
an n x p matrix of covariates, where each row is an observation and each column is a predictor |
y |
vector of responses of length n |
z |
an n x C matrix of binary indicators, where each column is a binary variable indicating the presence
of a binary variable which acts as a stratifying variable. Each combination of all columns of |
z.combinations |
a matrix of dimensions 2^C x C with each row indicating a different combination of the possible
values in |
d |
an integer vector of length 2^C of structural dimensions. Specified in the same order as the rows in
|
weights |
vector of observation weights |
constrain.none.subpop |
should the "none" subpopulation be constrained to be contained in every other subpopulation's
dimension reduction subspace? Recommended to set to |
pooled |
should the estimator be a pooled estimator? |
... |
not used |
Value
A list with the following elements
beta a list of estimated sufficient dimension reduction matrices, one for each subpopulation
directions a list of estimated sufficient dimension reduction directions (i.e. the reduced dimension predictors/variables), one for each subpopulation. These have number of rows equal to the sample size for the subpopulation and number of columns equal to the specified dimensions of the reduced dimension spaces.
y.list a list of vectors of responses for each subpopulation
z.combinations the
z.combinations
specified as an inputcov list of variance covariance matrices for the covariates for each subpopulation
sqrt.inv.cov list of inverse square roots of the variance covariance matrices for the covariates for each subpopulation. These are used for scaling
Examples
library(hierSDR)