Hello,? I am trying to estimate 95% CI using the confint function for a generalized liner model. While I am able to estimate Odds ratio using the coef function but on using the confint function, I get the message " Error in approx(sp$y, sp$x, xout = cutoff) : need at least two non-NA values to interpolate" The following are the Coefficients for which I am trying to calculate 95% CI. The original data has no NA values so I am not sure why this error is showing up Estimate Std. Error z value Pr(>|z|)1.05649 0.30658 3.446 0.000569 ***-0.58348 0.49948 -1.168 0.242744-0.77959 1.47292 -0.529 0.596609-18.50414 6522.63862 -0.003 0.997736-0.82328 0.49102 -1.677 0.093608 .-13.95852 4036.00271 -0.003 0.9972410.53909 0.83073 0.649 0.516376-0.55514 0.46189 -1.202 0.22940817.75434 6522.63863 0.003 0.997828-15.97188 1051.20492 -0.015 0.987878-0.16589 0.43172 -0.384 0.70079231.60387 1459.11421 0.022 0.982719-0.42616 0.43637 -0.977 0.3287661.10179 1.19697 0.920 0.3573210.52345 1.23113 0.425 0.6707050.50791 1.54670 0.328 0.7426210.19881 0.34945 0.569 0.569403-0.07887 0.49769 -0.158 0.8740850.05958 0.36780 0.162 0.871306-0.61339 0.38503 -1.593 0.111142 I tried to compute 95% CI using the above coefficients using the cofit function Thank you!
Error on using Confint function to calculate 95% CI
4 messages · bharat rawlley, Michael Dewey, Ebert,Timothy Aaron
I am afraid your post is more or less unreadable since you posted in HTML and this is a plain text list. It might also help if you gave more context like the full results of your model. There is a list dedicated to mixed models https://stat.ethz.ch/mailman/listinfo/r-sig-mixed-models which may be able to help you better. Michael
On 26/04/2023 02:37, bharat rawlley via R-help wrote:
Hello, I am trying to estimate 95% CI using the confint function for a generalized liner model. While I am able to estimate Odds ratio using the coef function but on using the confint function, I get the message " Error in approx(sp$y, sp$x, xout = cutoff) : need at least two non-NA values to interpolate" The following are the Coefficients for which I am trying to calculate 95% CI. The original data has no NA values so I am not sure why this error is showing up Estimate Std. Error z value Pr(>|z|)1.05649 0.30658 3.446 0.000569 ***-0.58348 0.49948 -1.168 0.242744-0.77959 1.47292 -0.529 0.596609-18.50414 6522.63862 -0.003 0.997736-0.82328 0.49102 -1.677 0.093608 .-13.95852 4036.00271 -0.003 0.9972410.53909 0.83073 0.649 0.516376-0.55514 0.46189 -1.202 0.22940817.75434 6522.63863 0.003 0.997828-15.97188 1051.20492 -0.015 0.987878-0.16589 0.43172 -0.384 0.70079231.60387 1459.11421 0.022 0.982719-0.42616 0.43637 -0.977 0.3287661.10179 1.19697 0.920 0.3573210.52345 1.23113 0.425 0.6707050.50791 1.54670 0.328 0.7426210.19881 0.34945 0.569 0.569403-0.07887 0.49769 -0.158 0.8740850.05958 0.36780 0.162 0.871306-0.61339 0.38503 -1.593 0.111142 I tried to compute 95% CI using the above coefficients using the cofit function Thank you! [[alternative HTML version deleted]]
______________________________________________ R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Are the numbers you provided multiple estimates of one coefficient or are they one estimate each of over 20 coefficients? -----Original Message----- From: R-help <r-help-bounces at r-project.org> On Behalf Of Michael Dewey Sent: Wednesday, April 26, 2023 5:14 AM To: bharat rawlley <bharat_m_all at yahoo.co.in>; r-help at R-project.org Subject: Re: [R] Error on using Confint function to calculate 95% CI [External Email] I am afraid your post is more or less unreadable since you posted in HTML and this is a plain text list. It might also help if you gave more context like the full results of your model. There is a list dedicated to mixed models https://stat.ethz.ch/mailman/listinfo/r-sig-mixed-models which may be able to help you better. Michael
On 26/04/2023 02:37, bharat rawlley via R-help wrote:
Hello,
I am trying to estimate 95% CI using the confint function for a generalized liner model. While I am able to estimate Odds ratio using the coef function but on using the confint function, I get the message " Error in approx(sp$y, sp$x, xout = cutoff) : need at least two non-NA values to interpolate"
The following are the Coefficients for which I am trying to calculate 95% CI.
The original data has no NA values so I am not sure why this error is
showing up Estimate Std. Error z value Pr(>|z|)1.05649 0.30658 3.446
0.000569 ***-0.58348 0.49948 -1.168 0.242744-0.77959 1.47292 -0.529
0.596609-18.50414 6522.63862 -0.003 0.997736-0.82328 0.49102 -1.677 0.093608 .-13.95852 4036.00271 -0.003 0.9972410.53909 0.83073 0.649 0.516376-0.55514 0.46189 -1.202 0.22940817.75434 6522.63863 0.003 0.997828-15.97188 1051.20492 -0.015 0.987878-0.16589 0.43172 -0.384 0.70079231.60387 1459.11421 0.022 0.982719-0.42616 0.43637 -0.977 0.3287661.10179 1.19697 0.920 0.3573210.52345 1.23113 0.425 0.6707050.50791 1.54670 0.328 0.7426210.19881 0.34945 0.569 0.569403-0.07887 0.49769 -0.158 0.8740850.05958 0.36780 0.162 0.871306-0.61339 0.38503 -1.593 0.111142 I tried to compute 95% CI using the above coefficients using the cofit function Thank you!
[[alternative HTML version deleted]]
______________________________________________ R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat/ .ethz.ch%2Fmailman%2Flistinfo%2Fr-help&data=05%7C01%7Ctebert%40ufl.edu %7Cf739f8c53ddd437c07ee08db46369b80%7C0d4da0f84a314d76ace60a62331e1b84 %7C0%7C0%7C638180972584973688%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAw MDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sda ta=puiwfHLnklY%2BasBERzyePEfX5DFw9Lsu1D5XmidwGlY%3D&reserved=0 PLEASE do read the posting guide http://www.r/ -project.org%2Fposting-guide.html&data=05%7C01%7Ctebert%40ufl.edu%7Cf7 39f8c53ddd437c07ee08db46369b80%7C0d4da0f84a314d76ace60a62331e1b84%7C0% 7C0%7C638180972584973688%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiL CJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=uh Wtrk9PjUcZYY%2BOiVMIdjcpcIzBNwFgahW%2Bv2BfEuI%3D&reserved=0 and provide commented, minimal, self-contained, reproducible code.
-- Michael http://www.dewey.myzen.co.uk/home.html ______________________________________________ R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.r-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Thanks a lot for your response? I managed to figure out the solution. There were some variables in my data which were not a part of the model but were interfering with the function. I removed those from my database and got the results? Thanks! Sent from Yahoo Mail for iPhone
On Wednesday, April 26, 2023, 5:14 AM, Michael Dewey <lists at dewey.myzen.co.uk> wrote:
I am afraid your post is more or less unreadable since you posted in HTML and this is a plain text list. It might also help if you gave more context like the full results of your model. There is a list dedicated to mixed models https://stat.ethz.ch/mailman/listinfo/r-sig-mixed-models which may be able to help you better. Michael
On 26/04/2023 02:37, bharat rawlley via R-help wrote:
Hello, I am trying to estimate 95% CI using the confint function for a generalized liner model. While I am able to estimate Odds ratio using the coef function but on using the confint function, I get the message " Error in approx(sp$y, sp$x, xout = cutoff) : need at least two non-NA values to interpolate" The following are the Coefficients for which I am trying to calculate 95% CI. The original data has no NA values so I am not sure why this error is showing up Estimate Std. Error z value Pr(>|z|)1.05649 0.30658 3.446 0.000569 ***-0.58348 0.49948 -1.168 0.242744-0.77959 1.47292 -0.529 0.596609-18.50414 6522.63862 -0.003 0.997736-0.82328 0.49102 -1.677 0.093608 .-13.95852 4036.00271 -0.003 0.9972410.53909 0.83073 0.649 0.516376-0.55514 0.46189 -1.202 0.22940817.75434 6522.63863 0.003 0.997828-15.97188 1051.20492 -0.015 0.987878-0.16589 0.43172 -0.384 0.70079231.60387 1459.11421 0.022 0.982719-0.42616 0.43637 -0.977 0.3287661.10179 1.19697 0.920 0.3573210.52345 1.23113 0.425 0.6707050.50791 1.54670 0.328 0.7426210.19881 0.34945 0.569 0.569403-0.07887 0.49769 -0.158 0.8740850.05958 0.36780 0.162 0.871306-0.61339 0.38503 -1.593 0.111142 I tried to compute 95% CI using the above coefficients using the cofit function Thank you! ??? [[alternative HTML version deleted]]
______________________________________________ R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Michael http://www.dewey.myzen.co.uk/home.html [[alternative HTML version deleted]]