Loop does not print function output

后端 未结 3 759
情话喂你
情话喂你 2021-01-28 13:39

I\'m trying to make a loop which gives me back the bootstrapped confidence intervals for a regression analysis with one Intercept and three coefficients. Programming the bootstr

3条回答
  •  自闭症患者
    2021-01-28 14:06

    If you just want to see the output, wrap your function in a print command.

    for (i in 2:inputnumberobjects)
      {
       cat(paste("BOOT CONFIDENCE INTERVALS FOR COEFFICIENT ", inputnamesobjects[i], ":\n\n", sep=""))
       print(boot.ci(bootResults, type = "bca", index=i)) ### Result for Coefficients
      }
    

提交回复
热议问题