pwr: pwr

Description Usage Arguments Examples

View source: R/pwr.R

Description

pwr estimates the PWR model

Usage

1
pwr(net, y, X, bandwidth="cv_pwr")

Arguments

net:

an igraph network object.

y:

the dependent variable of the PWR model

X:

a matrix of covariates for the model.

bandwidht:

the bandwidth for the decay function applied to the connected paths. Default uses the function pwr_cv to calculate the optimal bandwidth using leave-one-out cross validation

Examples

1
2
l <- pwr(net=net,y=log(V(net)$in_degree+1),
 X=as.matrix(log(V(net)$out_degree+1)))

TiagoVentura/pwr documentation built on Oct. 26, 2021, 2:13 p.m.