coef.sgpv: 'coef.sgpv': Extract coefficients from the model fit

Description Usage Arguments Value Examples

View source: R/pro.sgpv.R

Description

S3 method coef for an S3 object of class sgpv

Usage

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

Arguments

object

An sgpv object

...

Other coef arguments

Value

Coefficients in the OLS model

Examples

1
2
3
4
5
6
7
8
9
# 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)

zuoyi93/ProSGPV documentation built on Aug. 31, 2021, 1:22 a.m.