Question: 1 0 N 9 saved What does the following code do ( you may look at either the R or SAS code ) ? out
saved
What does the following code do you may look at either the R or SAS code
out of
SAS:
data classdata;
set classdata;
if optimism then IsOptimistic;
else if optimism and optimism then IsOptimistic;
run;
R:
classdata$isOptimistic ifelseclassdata$optimism
Select one:
a Removes observations with optimism
b Creates a new binary variable
c Flags values of the variable "optimism" that are unrealistic
d Divides the dataset into two smaller datasets
Clear my choice
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
