Preheat oven to 350 degrees F. Line two baking sheets with foil.In a mixing bowl, beat the butter with sugar until creamy. Beat in the eggs and vanilla, then stir in carrots and raisins.
Mix the dry ingredients (flour, baking powder, soda, salt and cinnamon) together, then add them to the creamed mixture, stirring just until mixed.Drop by rounded spoonfuls (if you have a medium cookie scoop, it works well) on to the sheets.
Sprinkle pecans over half of the cookies.
Bake 15 to 20 minutes.
Let cool on sheets for a while. When completely cool, sandwich 2 cookies together with the cream cheese filling. Use a pecan topped cookie for the top cookie.Beat the cream cheese, gradually adding the butter. Beat until smooth. Sift in sugar. Beat well.
Add pineapple and vanilla. Rub cream cheese frosting over the bottom of half of the cookies and use the remaining cookies to top the sandwiches.