coef.sgpv {ProSGPV}R Documentation

coef.sgpv: Extract coefficients from the model fit

Description

S3 method coef for an S3 object of class sgpv

Usage

## S3 method for class 'sgpv'
coef(object, ...)

Arguments

object

An sgpv object

...

Other coef arguments

Value

Coefficients in the OLS model

Examples


# prepare the data
x <- t.housing[, -ncol(t.housing)]
y <- t.housing$V9

# run one-stage algorithm
out.sgpv <- pro.sgpv(x = x, y = y)

# get coefficients
coef(out.sgpv)

[Package ProSGPV version 1.0.0 Index]