Fit models for meta-regression calculation in R Studio

Asked

Viewed 367 times

1

I started using R Studio a short time ago to do a meta-regression analysis using package Mada. I need to create a model fit for each variable and after creating 6 models fit the R started giving an error saying that it is not finding the object. How can you help me? Do you have a limit of fit values that can be created? Thank you

  • 1

    Could you put the code you’re running? It’ll be easier to help.

  • A sequência que estava usando é essa: > madad(cbct.pr.sa)&#xA;> summary(fit.cbct.pr.sa.Metodo)&#xA;> summary(cbct.pr.sa$Metodo)&#xA;> fit.cbct.pr.sa.Metodo <- reitsma(cbct.pr.sa,&#xA;+ formula = cbind(tsens, tfpr) ~ Method) but now already in the second row gives the object error not found even with the file that previously ran the test correctly.

1 answer

1

Whereas you spun it on R

> madad(cbct.pr.sa) 
> summary(fit.cbct.pr.sa.Metodo) 
> summary(cbct.pr.sa$Metodo) 
> fit.cbct.pr.sa.Metodo <- reitsma(cbct.pr.sa, + formula = cbind(tsens, tfpr) ~ Metodo) 

Your code seems to have several problems:

  1. In the first line you do not assign the function result to any object. Therefore, after Summary will not work.

  2. The execution order seems strange, you ask the summary of an object that is created after.

See if it works that way:

summary(cbct.pr.sa$Metodo) 
fit.cbct.pr.sa.Metodo <- reitsma(cbct.pr.sa, formula = cbind(tsens, tfpr) ~ Metodo) 
summary(fit.cbct.pr.sa.Metodo) 

I couldn’t identify the purpose of the madad(cbct.pr.sa) in your code. There is no limit to fits that can be created.

  • Daniel, thank you so much for your help but I think it’s a mental problem of mine. I don’t know what I’m doing but I can’t run the controls.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.