compare.estimate.and.truth: Measuring model accuracy.

Description Usage Arguments Details Value Note Author(s) References See Also Examples

Description

Compare estimated parameters and the original parameters used to generate the toydata.

Usage

1

Arguments

res

DependencyModel object.

toy

Toydata which was used to learn the model.

Details

Given original data (including the original parameters) and model learned based on the data, compare the learned parameters to the original ones.

Value

Vector with following elements

wtw.x, wtw.y

Correlation between the original and estimated values for W*t(W) for X and Y, respectively.

phi.x, phi.y

Correlation between the original and estimated values for phi for X and Y, respectively.

Note

Additional tests added later.

Author(s)

Leo Lahti leo.lahti@iki.fi

References

See citation("dmt") for references.

See Also

generate.toydata

Examples

1
2
3
4
5
6
7
 
#toy <- generate.toydata(N = N, zDim = zdim, xDim = xdim, yDim = ydim, marginal.covariances = marginalCovariances, priors = priors)
#res <- fit.dependency.model(toy$X, toy$Y, zDimension = zdim,
#                      marginalCovariances = marginalCovariances,
#		      priors = priors, matched = FALSE)					  				  
#vec <- compare.estimate.and.truth(res, toy)
#

dmt documentation built on May 2, 2019, 5:49 p.m.