Learn R Programming

ProSGPV (version 1.0.0)

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

Description

S3 method coef for an S3 object of class sgpv

Usage

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

Arguments

object

An sgpv object

...

Other coef arguments

Value

Coefficients in the OLS model

Examples

Run this code
# NOT RUN {
# 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)
# }

Run the code above in your browser using DataLab