Skip to content

new.pim.formula completely ignores the left hand side! #16

Description

@JoFAM
myPO <- function(x){
  lx <- L(x)
  rx <- R(x)
  n <- length(lx)
  
  out <- rep(-2, n)
  out[lx > rx] <- 2
  return(out)
}

xx <- rnorm(20)
yy <- xx + runif(20,-0.1,0.1)

pe <- new.pim.env(environment(), compare = "unique",
                  vars = c("xx","yy"))
new.pim.formula(myPO(yy) ~ L(xx) - R(xx), pe)

returns :

PIM formula without intercept:
myPO(yy) ~ L(xx) - R(xx)
<environment: 0x0000000016c09a38>

Left hand side: PO(L(yy), R(yy))

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions