Description Usage Arguments Value Author(s) See Also Examples
Fit a stan model.
| 1 2 3 | 
| model | A stan model of rstan:stanmodel class. | 
| method | Method to estimate model parameters ("optimizing", or "sampling"). | 
| type | Variable type of the response variable ("linear", "binary", "categorical"). | 
| cov | A matrix of model covariates. | 
| geno | A vector of variant genotype data (0, 1, 2). | 
| pheno | A vector of response variable data. | 
A list of model fit.
Xulong Wang, xwang@jax.org
rstan package which this function wraps
| 1 2 3 4 5 6 7 8 9 | myGWAS_fit(mymodel, rebuild = F)
data("sample", package = "bayes.glmm")
pheno = data$pheno
geno = data$geno
cov = data$cov
L <- t(chol(data$K))
mymodel = stan_models(model = "glm")
y1 = myGWAS_fit(model = mymodel, method = "optimizing", type = "categorical", cov = cov, geno = geno[c(1, 3), ], pheno = pheno)
y2 = myGWAS_fit(model = mymodel, method = "sampling", type = "categorical", cov = cov, geno = geno[c(1, 3), ], pheno = pheno)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.