Calculates the regression coefficients, the P-values and the standard P-values for the chosen subset ind.
fpval(y,x,ind,q,xinr=F)
The dependent variable
The covariates
The subset of the covariates x for which the P-values are required
The total number of covariates from which ind was chosen
If TRUE intercept included
apv In order the subset ind, the regression coefficients, the P-values, the standard P-values.
res The residuals
# NOT RUN { data(boston) a<-fpval(boston[,14],boston[,1:13],c(1,2,4:6,8:13),13) # }
Run the code above in your browser using DataCamp Workspace