mmKDEboot: Moment matching for kernel density estimators.

Description Usage Arguments Value Methods (by class)

View source: R/mmKDEboot.R

Description

Bootstrap estimates, along with standard errors and confidence intervals, of a linear model, resulting from moment matching of kernel density estimates.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
mmKDEboot(formula, data = list(), xin, type, bootstraps, bootName, ...)

## Default S3 method:
mmKDEboot(formula, data = list(), xin, type, bootstraps,
  bootName, ...)

## S3 method for class 'mmKDEboot'
print(x, ...)

## S3 method for class 'mmKDEboot'
summary(object, ...)

## S3 method for class 'summary.mmKDEboot'
print(x, ...)

## S3 method for class 'formula'
mmKDEboot(formula, data = list(), xin, type, bootstraps,
  bootName, ...)

## S3 method for class 'mmKDEboot'
predict(object, newdata = NULL, ...)

Arguments

formula

An LHS ~ RHS formula, specifying the linear model to be estimated.

data

A data.frame which contains the variables in formula.

xin

Numeric vector of length equal to the number of independent variables, of initial values, for the parameters to be estimated.

type

An integer specifying the bandwidth selection method used, see bw.

bootstraps

An integer giving the number of bootstrap samples.

bootName

The name of the .rds file to store the mmKDEboot object. May include a path.

...

Arguments to be passed on to the control argument of the optim function.

x

An mmKDEboot object.

object

An mmKDEboot object.

newdata

The data on which the estimated model is to be fitted.

Value

A generic S3 object with class mmKDEboot.

mmKDEboot.default: A list object (saved using saveRDS in the specified location) with the following components:

summary.mmKDEboot: A list of class summary.mmKDEboot with the following components:

print.summary.mmKDEboot: The object passed to the function is returned invisibly.

predict.mmKDEboot: A vector of predicted values resulting from the estimated model.

Methods (by class)


alR documentation built on Dec. 7, 2017, 5:03 p.m.