Skip to content

Computing p-values for svyolr objects #1107

@gjones1219

Description

@gjones1219

Hello! I have written on this issue before, but am coming back to it because I do not think it was addressed before. You responded to my comment previously, and I am appreciative and apologize for not responding until now, but I do not think the functionality I was looking for was added.

I am writing to see if it would be possible for you all to assess p-values for svyolr objects. This functionality seems to be missing from the package, and would be invaluable for significance testing for ordinal logistic regression models. Attaching reproducible code for your review:

#######

library(broom)
library(survey)

data(api)
dclus1<-svydesign(id=~dnum, weights=~pw, data=apiclus1, fpc=~fpc)
dclus1<-update(dclus1, mealcat=cut(meals,c(0,25,50,75,100)))

m<-svyolr(mealcat~avg.ed+mobility+stype, design=dclus1)
m

broom::tidy(m, conf.int = FALSE,
conf.level = 0.95,
exponentiate = FALSE,
p.values = TRUE)

#Usually provides an error message saying this doesn't run.

Thank you, and please let me know if I can further clarify this request!

Thanks,
gjones1219

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