Skip to content

predict_fit_and_ci is unnecessarily verbose  #76

@R-Walmsley

Description

@R-Walmsley

Should be possible to replace:

x <-  data.matrix(new_data[, transf_labels] - rep(cm_transf_df[, transf_labels], by = nrow(new_data)))
t_x <- data.matrix(as.matrix(t(x)))

With:

x <-  data.matrix(new_data[, transf_labels] - cm_transf_df[, transf_labels]) # The "by" wasn't actually doing anything, but the operation is vectorised
t_x <- t(x)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions