Description Usage Arguments Value Examples
View source: R/stepwise_fit_model.R
Two models are returned, a base model which includes all values at phenotypes dataframe, and a stepwise fitted model using Akaike Information Criterion.
1 | stepwise_fit_model(y, phenotypes, ...)
|
y |
Array of values |
phenotypes |
Data frame with phenotype-related covariables |
... |
List of other parameters related with MASS::stepAIC function |
List with base and fitted linear regression models.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | ## Not run:
stepwise_fit_model(
y = rnorm(100, 1, 10),
data.frame(covar = rnorm(100, 1, 1), covar2 = rnorm(100, 1, 1) )
)
stepwise_fit_model(
y = rnorm(100, 1, 10),
data.frame(covar = rnorm(100, 1, 1), covar2 = rnorm(100, 1, 1) ),
scope = list(
lower = ~ covar,
upper = ~ .
)
)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.