Nothing
#' @title stderrs
#'
#' @description A function to retrieve a vector of standard error (stderr)
#' of coefficient estimates (betahats) all predictor variables in the pseudo-value regression model.
#'
#' @param SOHPIEres An object called after running SOHPIE_DNA.
#'
#' @return A table that includes standard error of betahats
#' for all predictors regressed in the fitted model.
#'
#' @examples
#' \donttest{
#' data(combinedamgut) # A complete data containing columns with taxa and clinical covariates.
#'
#' # Note: The line below will use a toy example with the first 30 out of 138 taxa.
#' OTUtab = combinedamgut[ , 8:37]
#' # Clinical/demographic covariates (phenotypic data):
#' # Note: All of these covariates will be included in the regression, so
#' # please make sure that phenodat includes the variables that will be analyzed only.
#' phenodat = combinedamgut[, 1:7] # first column is ID, so not using it.
#' # Obtain indices of each grouping factor
#' # In this example, a variable indicating the status of living with a dog was chosen (i.e. bin_dog).
#' # Accordingly, Groups A and B imply living without and with a dog, respectively.
#' newindex_grpA = which(combinedamgut$bin_dog == 0)
#' newindex_grpB = which(combinedamgut$bin_dog == 1)
#'
#' SOHPIEres <- SOHPIE_DNA(OTUdat = OTUtab, clindat = phenodat,
#' groupA = newindex_grpA, groupB = newindex_grpB, c = 0.5)
#'
#' # stderrs() function will return standard error of betahats only.
#' stderrs(SOHPIEres)
#' }
#' @export
stderrs <- function(SOHPIEres) {
stderrstab <- SOHPIEres$stderrs
return(stderrstab = stderrstab)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.