Skip to content

Error from predict.ds when hr with covariates and se.fit = TRUE #84

@LHMarshall

Description

@LHMarshall
image

Error reproduces using the code below:

dat <- data.frame(distance=abs(rnorm(100)), x=rnorm(100))
hrcov <- Distance::ds(dat, formula=~x, key="hr")

hr <- Distance::ds(dat, key="hr")

hncov <- Distance::ds(dat, formula=~x)

nd <- data.frame(distance = 0.25, x=0.5)

predict(hr, nd, se.fit=TRUE)

predict(hncov, nd, se.fit=TRUE)

predict(hrcov, nd)

predict(hrcov, nd, se.fit=TRUE)

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions