RAW is a file format, just like JPEG, only RAW is data.
JPEG's are essentially the end product of RAW's as the camera gets the data and creates an image from it. But you can take your shots in RAW which means its easier to process on your computer as rather than changing pixels that are set like stone, you are changing data which is just like a load of numbers. Therefore making RAW more flexible but a much larger file format