polSelect: Polynomial selection methods.

polSelectR Documentation

Polynomial selection methods.

Description

This is a collection of methods to select the piecewise polynomials.

Usage

selASY(X, Y, Z, pFact=0.3, splineMet=c("manual","bs"))
selIC(X, Y, Z, pFact=0.3, type=c("AIC", "BIC"), splineMet=c("manual","bs"))
selCV(X, Y, Z, pFact=0.3, splineMet=c("manual","bs"))

Arguments

X

A vector of covariates

Y

A vector of observed outcomes

Z

A vector of treatment indicators

pFact

The maximum number of knots when the argument knots is set to NA if n^pFact, where n is the length of X.

type

The type of informatrion criterion

splineMet

Should the method be homemade (manual) of based on the bs function from the splines package?


causalOTLSE documentation built on June 9, 2022, 3:02 a.m.