Hi Please help me in the below problem using SAS codes,
have attached the excel below.
The excel contains four sheets
Demo: Demographic details of the customer
Policy Type:Details about the type of policy, age limits & duration limits for each insurance.
Claims: Details regarding claims made, claim date, settlement date, amount claimed and settled
Policy: Details of each policy, sum assured, duration of policy & policy date,
I want to calculate:
Number of policies per person
Number of joint policies per person
Total sum assured
Gender (in the data for variable gender if the 1st string is “m”, irrespective of being capital or small letter, it means “male”, otherwise “female”)
Months on book (or number of months since a customer opened his/her 1st policy with the bank)
Age of the customer
Number of claims by a customer
Create a flag for customer who has claimed and for customer who has not claimed till date.
Flag taking the value 1 for a customer who has purchased a term insurance and 0 otherwise
Total claims for each customer
Flag taking value 1 for customer who will be ineligible to buy a term insurance after 5 years and value 0 otherwise
Date of the policy expiring first, in the format like 12/31/2016
Number of days since last claim made
Homework or interview? Please make an attempt at your own work. We're more than happy to help but this is not a request for help.
@hmc wrote:
Hi Please help me in the below problem using SAS codes,
have attached the excel below.
The excel contains four sheets
Demo: Demographic details of the customer
Policy Type:Details about the type of policy, age limits & duration limits for each insurance.
Claims: Details regarding claims made, claim date, settlement date, amount claimed and settled
Policy: Details of each policy, sum assured, duration of policy & policy date,I want to calculate:
Number of policies per person
Number of joint policies per person
Total sum assured
Gender (in the data for variable gender if the 1st string is “m”, irrespective of being capital or small letter, it means “male”, otherwise “female”)
Months on book (or number of months since a customer opened his/her 1st policy with the bank)
Age of the customer
Number of claims by a customer
Create a flag for customer who has claimed and for customer who has not claimed till date.
Flag taking the value 1 for a customer who has purchased a term insurance and 0 otherwise
Total claims for each customer
Flag taking value 1 for customer who will be ineligible to buy a term insurance after 5 years and value 0 otherwise
Date of the policy expiring first, in the format like 12/31/2016
Number of days since last claim made
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.