Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8325947
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T00:36:25+00:00 2026-06-09T00:36:25+00:00

I expected the following code to return the lower and upper bounds of a

  • 0

I expected the following code to return the lower and upper bounds of a 95% confidence interval:

confint95 = function(mean, se)
{
  confint = abs(se*1.96)
  lower = abs(mean-cint)
  upper = abs(mean+cint)
  return(lower,upper) 
}

But this gives this message:

Error in return(lower, upper) : multi-argument returns are not permitted

How can I set function to return the lower and upper bounds of a 95% confidence interval?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T00:36:26+00:00Added an answer on June 9, 2026 at 12:36 am

    Function will return the last expression. If you think for a moment without return. If you gave the function as the last expression to be evaluated

    lower, upper
    

    it would produce an error. If you have IDE it would also probably complain about a syntax error. You would solve that by combining the two elements with a c as @Andrie indicated. Ergo, you need to pass a single object. I often use lists to output different data structures. In your case, a vector is more than sufficient.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The following code always returns undefined function sendCommand(cmdJson){ chrome.extension.sendRequest(cmdJson, function(response){ return response; }); }
I have the following code, public static function clearDelimeters(formattedString:String):String { return formattedString.split(\n).join().split(\t).join(); } The
I needed a function to return a string. I used the following code to
I expected the following 2 code snippets to be equivalent: function waitFirstLoadHTML(message) { var
I have the following code block : function testJQueryClick(){ $('#button2').click(function(){ alert ('Debug'); return false;
Doing an ajax get request works as expected using the following code: $.ajax({ type:
The following code basically works as expected. However, to be paranoid, I was wondering,
The following code works as expected on CentOS and Ubuntu O/s but not on
The following code fails in 'Evaluate' with: This expression was expected to have type
The following code is throwing two alerts as expected in IE but not in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.