Skip to content

Commit 05686e6

Browse files
committed
low dimensional problem call
1 parent 9de8e04 commit 05686e6

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: coda.count
22
Type: Package
33
Title: Tools for Compositional Count Data Distributions
4-
Version: 0.4.0.5
4+
Version: 0.4.0.6
55
Date: 2023-04-19
66
Authors@R: c(person("Marc", "Comas-Cufí", role = c("aut", "cre"),
77
email = "mcomas@imae.udg.edu"))

R/conditional_lrnm_low_dim.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ fit_one_dimensional_conditional_lrnm = function(X, C = X > 0, V = NULL, V.direct
2929
stop("Direction V should be specified or V.direction set to 'center' or 'equal'")
3030
}
3131
if(is.null(V)){
32-
if('equal'){
32+
if(V.direction == 'equal'){
3333
sel = rowSums(X==0)>0
3434
PART = 2*t(X==0)-1
3535
Vclr = matrix(0, nrow = ncol(X), ncol = nrow(X))

testing/comparing_methods_02.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ compare_methods = function(mu,sigma,n,m){
1818
fit3 = fit_lrnm(X, method = 'laplace')
1919
fit4 = fit_conditional_lrnm(X, method = 'mc')
2020
fit5 = fit_conditional_lrnm(X, method = 'hermite')
21-
fit6 = fit_conditional_lrnm(X, low.dim = 1)
21+
fit6 = fit_one_dimensional_conditional_lrnm(X)
2222
fit7 = fit_lrnm(X, method = 'vem')
2323

2424
# fit6 = fit_vem_lrnm(X, B)
@@ -42,8 +42,8 @@ lmu = lapply(seq_along(lres), function(i){
4242
row.names(dres) = NULL
4343
dres
4444
})
45-
dmu = bind_rows(lmu, .id = 'id')
4645
library(tidyverse)
46+
dmu = bind_rows(lmu, .id = 'id')
4747
ggplot(data=dmu) +
4848
geom_label(aes(x = ilr1, y = ilr2, label = id)) +
4949
facet_wrap(~method)

0 commit comments

Comments
 (0)