Learn R Programming

gausscov (version 0.1.8)

fgr1st: Calculates a dependence graph using Gaussian stepwise selection

Description

Calculates an independence graph using Gaussian stepwise selection

Usage

fgr1st(x,p0=0.01,ind=0,nu=1,kmn=0,kmx=0,mx=21,nedge=10^5,inr=T,xinr=F)

Value

ned Number of edges

edg List of edges together with P-values for each edge and proportional reduction of sum of squared residuals.

Arguments

x

The matrix of covariates

p0

Cut-off P-value

ind

Restricts the dependent nodes to this subset

nu

The order statistic of Gaussian covariates used for comparison.

kmn

The minimum number selected variables for each node irrespective of cut-off P-value

kmx

The maximum number selected variables for each node irrespective of cut-off P-value

mx

Maximum nunber of selected covariates for each node for all subset search

nedge

Maximum number of edges

inr

Logical, if TRUE include an intercept

xinr

Logical, if TRUE intercept already included

Examples

Run this code
data(boston)
a<-fgr1st(boston[,1:13],ind=3:6)

Run the code above in your browser using DataLab