powered by
Create an object of class '>polyX from raw dataset of X-inputs and standard polynomial.
'>polyX
crpolyX(dataX, d, type = "full")
Raw X-inputs. A data.frame with as many rows as observations, and as many columns as X-input variables.
Polynomial degree.
Polynomial type. A character string among:
full: complete polynomial with all monomials of degree less or equal to d,
full
d
power: power terms of degree less or equal to d,
power
interact: interactions of degree less or equal to d.
interact
An object of class '>polyX.
vect2polyX, crpolyXT
vect2polyX
crpolyXT
# NOT RUN { X <- cornell0[,1:3] # Creation of the polynomial of degree 2 including the power terms: # P= X1 + X2 + X3 + X1*X1 + X2*X2 + X3*X3 P <- crpolyX(X, 2, type="power") # }
Run the code above in your browser using DataLab