Skip to content

Error when using DAPSm with the Fast Search of Optimal Weight #22

@btudor01

Description

@btudor01

Hello,

I'm trying to use the DAPSm package to look at the difference in above ground biomass between two forest treatment types that are spread across a large region. Because I have a lot of data points, I've been trying to use the "fast search of the optimal weight," but I keep getting this error:

Error in if (!any(abs(stand_diff) > cutoff)) { : missing value where TRUE/FALSE needed

My data frame has all of the variables you detail in your DAPSm vignette, so I'm not sure what I'm doing wrong. If you have any ideas, or you have dealt with getting past this error, I would much appreciate some help, as I am pretty new to coding. Here's my dapsm code for reference.

daps <- DAPSest(edges_100, out.col = 9, trt.col = 24, caliper = 0.3, weight = 'optimal', coords.columns = c(2, 1), pairsRet = TRUE, cov.cols = 20, cutoff = 0.15, w_tol = 0.001, coord_dist = TRUE, caliper_type = 'DAPS', matching_algorithm = 'greedy')

Cheers!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions