[R-meta] Wald_test error

Michael Dewey ||@t@ @end|ng |rom dewey@myzen@co@uk
Tue Aug 10 15:07:59 CEST 2021


Dear Cátia

Is constraints allowed to be a vector rather than a matrix?

Michael

On 10/08/2021 12:39, Cátia Ferreira De Oliveira wrote:
> Dear all,
> 
> I have tried to run the code in this post:
> https://www.jepusto.com/clubsandwich-for-rve-meta-analysis/
> 
> *options(width=150)*
> *library(robumeta)*
> *library(clubSandwich)*
> 
> 
> *data(dropoutPrevention)*
> 
> 
> 
> *m3_robu <- robu(LOR1 ~ study_design + attrition + group_equivalence +
> adjusted*
> *                + outcome + evaluator_independence*
> *                + male_pct + white_pct + average_age*
> *                + implementation_quality + program_site + duration +
> service_hrs, *
> *                data = dropoutPrevention, studynum = studyID, var.eff.size
> = varLOR, *
> *                modelweights = "HIER")*
> *print(m3_robu)*
> 
> 
> *Wald_test(m3_robu, constraints = 10:12, vcov = "CR2")*
> 
> 
> But it gives me the following error when I run the Wald_test:
> 
> 
> 
> *Error in if (!inherits(constraints, "matrix") | ncol(constraints) != p) {
> :   argument is of length zero*
> 
> Does anyone know why this is happening?
> 
> Best wishes,
> 
> Catia
> 
> 	[[alternative HTML version deleted]]
> 
> _______________________________________________
> R-sig-meta-analysis mailing list
> R-sig-meta-analysis using r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-meta-analysis
> 

-- 
Michael
http://www.dewey.myzen.co.uk/home.html



More information about the R-sig-meta-analysis mailing list