Learn R Programming

gausscov (version 0.0.6)

fpval: Calculates the regression coefficients, the P-values and the standard P-values for the chosen subset ind

Description

Calculates the regression coefficients, the P-values and the standard P-values for the chosen subset ind.

Usage

fpval(y,x,ind,q,inr=T,xinr=F)

Arguments

y

The dependent variable

x

The covariates

ind

The subset of the covariates x for which the P-values are required

q

The total number of covariates from which ind was chosen

inr

Logical If TRUE intercept to be included

xinr

If TRUE intercept already included, overrides inr

Value

apv In order the subset ind, the regression coefficients, the P-values, the standard P-values.

res The residuals

Examples

Run this code
# 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 DataLab