First caramelize the onions. Melt ¼ cup of ghee in a medium saute pan over med-low heat. Cut the onion into quarters and then slice very thin and evenly. Add the onions to the pan and toss with the ghee to coat. You will stir every once in a while to make sure they cook evenly. They will cook for about 30 minutes.While the onions are cooking, preheat the oven to 400 degrees and grease a 9 inch pie plate or baking dish. Peel your sweet potato and chop off the ends. Slice it into very thin rounds, or if it's a thick one, cut in half and then slice thin.Preheat a large heavy skillet over medium heat and add the 2 tbsp ghee, then the sweet potatoes. Toss them around so they cook evenly. You want them to cook until golden brown and soft.Meanwhile don't forget to stir the onions! After the onions have been cooking 10 minutes, stir in the ¼ tsp salt and continue to cook over med-low heat.Once the sweet potatoes are lightly browned and soft you can add them to the baking dish and spread them along the bottom. Keep the heat going in the pan and add the chorizo, breaking up lumps so it browns evenly. Cook the chorizo and continue to stir while breaking up lumps until it is fully browned. Then add it to the dish on top of the sweet potatoes.By now the onions should be pretty caramelized - a light to medium golden brown color. Add them to the dish over the chorizo.In a large bowl, whisk the 6 eggs and stir in the paprika, garlic powder, and remaining salt. Pour the egg mixture over the onions, chorizo and sweet potatoes and spread around so it covers everything.Bake in the preheated oven for 20-25 minutes or until the eggs are set and the frittata is bubbly and toasty. Remove from oven and let it sit for about 10 minutes before cutting and serving. Works great for any meal and for leftovers too.