mAvg: A simple function to perfom model averaging using...

Description Usage Arguments Value Examples

Description

This function takes weights and parameters and returns model averaged parameters using the weights.

Usage

1
mAvg(params, ws)

Arguments

params

a (non-empty) numeric vector of parameters

ws

a (non-empty) numeric vector of weights corresponding to params.

Value

Returns a numeric vector of model averaged parameters.

Examples

1
#not run, iternal function

Example output

Loading required package: gamlss
Loading required package: splines
Loading required package: gamlss.data

Attaching package: 'gamlss.data'

The following object is masked from 'package:datasets':

    sleep

Loading required package: gamlss.dist
Loading required package: MASS
Loading required package: nlme
Loading required package: parallel
 **********   GAMLSS Version 5.1-3  ********** 
For more on GAMLSS look at http://www.gamlss.org/
Type gamlssNews() to see new features/changes/bug fixes.

Loading required package: gamlss.cens
Loading required package: survival

binequality documentation built on May 2, 2019, 9:58 a.m.