![]() For example, 'poly13' has an intercept and x 1, x 2, x 2 2, x 2 3, x 1* x 2, and x 1* x 2 2 terms, where x 1 and x 2 are the first and second predictors, respectively.Ī t-by-( p + 1) matrix, or a Terms Matrix, specifying terms in the model, where t is the number of terms and p is the number of predictor variables, and +1 accounts for the response variable. ![]() The model contains interaction terms, but the degree of each interaction term does not exceed the maximum value of the specified degrees. Specify the maximum degree for each predictor by using numerals 0 though 9. Model is a polynomial with all terms up to degree i in the first predictor, degree j in the second predictor, and so on. Model contains an intercept term, linear and squared terms for each predictor, and all products of pairs of distinct predictors. Model contains an intercept term and linear and squared terms for each predictor. Model contains an intercept, linear term for each predictor, and all products of pairs of distinct predictors (no squared terms). Model contains an intercept and linear term for each predictor. Model contains only a constant (intercept) term. Response variable, specified as a vector or matrix. Each column of X represents one variable, and each row represents one observation.īy default, there is a constant term in the model, unless you explicitly remove it, so do not include a column of 1s in X.ĭata Types: single | double y - Response variable ![]() Predictor variables, specified as an n-by- p matrix, where n is the number of observations and p is the number of predictor variables. If the variable names are not valid, then you can convert them by using the function. ![]() You can verify the variable names in tbl by using the isvarname function. You cannot use a formula to specify the lower and upper bounds of the model when you use the step or stepwiseglm function with the name-value pair arguments 'Lower' and 'Upper', respectively. You cannot use a formula to specify the terms to add or remove when you use the addTerms function or the removeTerms function, respectively. You cannot specify modelspec using a formula. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |