lm.net: Fitting Linear Regression Models for Network-linked Data

Description Usage Arguments Value Examples

View source: R/lm.net.R

Description

Fitting Linear Regression Models for Network-linked Data

Usage

1
lm.net(X, Y, Adj, lambda = 0.1, gamma = 0.01)

Arguments

X

Design matrix of predictors.“

Y

Response vector.

Adj

Adjacency matrix.

lambda

Regularization parameter.

gamma

Tuning parameter controlling the degree of jittering.

Value

A list object comprising:

alpha

Vector of network cohesion.

beta

Regression coefficients.

Examples

1
2
3
4
5
V <- 100
p <- 3
K <- 3
data <- generate.data(V, K, p)
lm.net(data$X, data$Y, data$Adj)

brtang63/StatComp21060 documentation built on Dec. 24, 2021, 1:25 a.m.