LatentVariablePlots: Plot Estimated Latent Variables Against Covariates

Description Usage Arguments Functions

Description

Plot Estimated Latent Variables Against Covariates

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
plot_LVvscovar.fit(
  fit,
  esttype = "median",
  theta = NULL,
  covar,
  facetvars = NULL,
  cuts = 3,
  aggregatefcn = mean
)

plotdf_LVvscovar.fit(
  fit,
  esttype = "median",
  theta = NULL,
  covar,
  aggregatefcn = mean
)

Arguments

fit

A fitted runjags object.

esttype

When fit is non-NULL, then esttype is used to extract parameter values

theta

a vector of model parameters with BUGS names

covar

a dataframe of covariate values. It must have a column labelled 'ModelSite' that gives the ModelSite of covariate value.

aggregatefcn

Rows in covar with duplicate ModelSite values are aggregrated using this function

Functions


sustainablefarms/linking-data documentation built on Oct. 28, 2020, 2:41 a.m.