R: Plots a MNNTS bivariate density together with the marginals
mnntsplotwithmarginals
R Documentation
Plots a MNNTS bivariate density together with the marginals
Description
Plots the MNNTS bivariate density function together with the marginals
Usage
mnntsplotwithmarginals(cestimates, M, ...)
Arguments
cestimates
Matrix of prod(M+1)*(R+1). The first R columns are the parameter number, and the last
column the c parameter's estimators. The matrix could be the output of mnntsmanifoldnewtonestimation $cestimates.
M
Vector of length R with number of components in the MNNTS for each dimension
...
Arguments passed to the function plot
Author(s)
Juan Jose Fernandez-Duran and Maria Mercedes Gregorio-Dominguez
References
Fernandez-Duran, J.J. and Gregorio-Dominguez, M.M. (2009)
Multivariate Angular Distributions Based on Multiple Nonnegative Trigonometric Sums,
Working Paper, Statistics Department, ITAM, DE-C09.1
Examples
M<-c(2,3)
R<-length(M)
data(Nest)
data<-Nest
est<-mnntsmanifoldnewtonestimation(data,M,R,1000)
est
cest<-est$cestimates
mnntsplotwithmarginals(cest, M)
Results
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(CircNNTSR)
Attaching package: 'CircNNTSR'
The following object is masked from 'package:grDevices':
trans3d
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/CircNNTSR/mnntsplotwithmarginals.Rd_%03d_medium.png", width=480, height=480)
> ### Name: mnntsplotwithmarginals
> ### Title: Plots a MNNTS bivariate density together with the marginals
> ### Aliases: mnntsplotwithmarginals
>
> ### ** Examples
>
> M<-c(2,3)
> R<-length(M)
> data(Nest)
> data<-Nest
> est<-mnntsmanifoldnewtonestimation(data,M,R,1000)
> est
$cestimates
1 2 cestimates
1 0 0 0.129365319+0.000000000i
2 1 0 -0.022724537+0.030193689i
3 2 0 -0.041968214+0.017942911i
4 0 1 0.027583559+0.028548740i
5 1 1 0.017872338-0.019121344i
6 2 1 -0.021294780-0.006160541i
7 0 2 -0.001282377+0.009097531i
8 1 2 0.008477646-0.020693765i
9 2 2 -0.000597991+0.008993618i
10 0 3 -0.024891098+0.004757459i
11 1 3 -0.010734043+0.021830576i
12 2 3 0.016843000+0.012156602i
$loglik
[1] -170.9465
$AIC
[1] 385.8931
$BIC
[1] 427.9576
$gradnormerror
[1] 2.75761e-16
> cest<-est$cestimates
> mnntsplotwithmarginals(cest, M)
>
>
>
>
>
> dev.off()
null device
1
>