1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
ANEK [815]
3 years ago
5

You are a Data Scientist at Anthem Blue Cross Blue Shield. You want to check if a patient will develop diabetes. Please write th

e R code to split the dataframe into test and training data. The proportion of split is 85/15, and the sample stratification needs to be done on the variable - age.
Computers and Technology
1 answer:
Sergio039 [100]3 years ago
6 0

Answer:

666

Explanation:

You are a Data Scientist at Anthem Blue Cross Blue Shield. You want to check if a patient will develop diabetes. Please write the R code to split the dataframe into test and training data. The proportion of split is 85/15, and the sample stratification needs to be done on the variable

You might be interested in
Which part holds the "brains" of the computer?
NeTakaya

The central processing unit or CPU

Explanation:

A CPU is a chip containing millions of tiny transistors

5 0
3 years ago
While using clip art, how can Anna narrow her search to a specific collection?
konstantin123 [22]
Well where is she searching to find her stuff

5 0
3 years ago
Read 2 more answers
Write a program that defines anduses macro MINIMUM2to determine the smallest of two numeric values. Input the valuesfrom the key
lisov135 [29]

Answer:

#include<iostream>

#define MINIMUM2(s1,s2) ((s1<s2?s1:s2))

using namespace std;

int main(){

   //initialization

  int s1,s2;

  //display the message

   cout<<"Enter the number 1: "<<endl;

   cin>>s1;  //read the input

   cout<<"Enter the number 2: "<<endl;

   cin>>s2; //read the input

   //use micros

   int min_Value = MINIMUM2(s1,s2);

   //display

   cout<<"The minimum value is: "<<min_Value<<endl;

    return 0;

}

Explanation:

Micros is the constants of symbols, values, etc.

it is used with the preprocessor directives represented by '#'. it means, the program process the information first before compiling the code.

syntax:

#define macro_name replacement_information

it actually, replace the information written in the macros into the code where we used the macros before the compilation.

In the above code,

we define the macros

#define MINIMUM2(s1,s2) ((s1<s2?s1:s2))

and create the main function and declare the variable.

after that, print the message by using the instruction cout and store the value enter by the user into the variable by using the instruction cin.

then, we use the macros the process copy the information ((s1<s2?s1:s2))

and replace where we call macros in the code.

so, actually before compilation

 int min_Value = MINIMUM2(s1,s2);

the above statement becomes

 int min_Value = ((s1<s2?s1:s2));

the above is a ternary operator, if s1 < s2 gives true then s1 will be the output otherwise s2 will be output.

and finally, we display the output on the screen.

3 0
3 years ago
Flash drive / USB is ___________ device. A)Input B)Output C)Internal D)None of these
svetlana [45]

Explanation:

USB is a output devices

7 0
2 years ago
What is Shay doing if she makes the most out of her work sessions by displaying and working with several programs all at once?
harkovskaia [24]
This is an important function called MULTITASKING
6 0
4 years ago
Other questions:
  • Alex writes down a string with four digits. (Since this is a string, not a number, it can start with a $0.$ For example, Alex co
    14·1 answer
  • Recall that when the built-in function open() is called to open a file for reading, but it doesn't exist, an exception is raised
    8·1 answer
  • Write a function that implements another stack function, peek. Peek returns the value of the first element on the stack without
    11·1 answer
  • 10 disscused reasons why organisatoions use electronic spreedsheet​
    14·1 answer
  • Romans are credited with “inventing” the capital city l? T or F
    6·1 answer
  • What are some characteristics of pseudocode? Check all that apply. Pseudocode is an informal way of expressing ideas and algorit
    11·2 answers
  • Which is the fastest CPU and why?
    5·1 answer
  • The best way to ensure the accuracy and safety of your accounts is to:
    10·1 answer
  • Write a MATLAB code for the following problem:
    13·1 answer
  • Your task is to design a method int[] allMatches(int[] values, int size, int a, int b) that returns all values between a and b i
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!