Not sure what you mean by analysis. However:
- The Study of Fugue, by Alfred Mann (1987) might be one of books you are looking for. A lot of history and technical information.
- Studies In Counterpoint Based on the Twelve-Tone Technique, by Ernst Krenek (1940)
- Counterpoint: Based on Eighteenth-Century Practice, by Kent Kennan (4th ed. - 1999) is a good example of music analysis.
1) Revisiting Music Theory. A Guide to the Practice, by Alfred Blatter (2007) provides more practical approach to theory.
2) Same applies to Alan Belkin's Practical Guide to Musical Composition.
3) Models for Beginners in Composition, by Arnold Schoenberger (the last, 3rd ed. was published in 1947, but it looks like it was reprinted in 2016 as part of Schoenberg in Words series) is built around examples. I own Russian translation of 1943 edition.
4) The Historical Performance of Music: An Introduction, by Colin Lawson and Robin Stowell (2004) can be helpful in understanding historical context of a piece. There are 2 more volumes which I don't own but might be helpful for transcribers:
- The Early Violin and Viola, and
- Early Keyboard Instruments.
Analysis of music more relevant for classical guitarist:
- Counterpoint for Guitar with Improvisation in the Renaissance Style and Study in Motivic Metamorphosis, by Dusan Bogdanovic (1996)
- Christopher Davis. Ornamentation and the Guitar. An Overview of Style and Technique (downloadable from author's website)
- A Guide to Playing the Baroque Guitar, by James Tyler (2011)
- The Guitarist's Guide to Bach, by Graham Wade (1985)
- The Essential Studies, by David Tanenbaum. Vol. 1-3 (Sor 20 Studies, Carcassi Op.60, Brower Estudios Sencillos)
- Abel Carlevaro Guitar Masterclass. Vol.1-4 (Sor 10 Studies, Villa-Lobos 5 preludes & 12 studies, Bach Cnaconne BWV 1004)
- Tilman Hoppstock has analytical works on playing Bach listed on his web site, but I don't own any.
- Luciano Tavares. Los preludios para guitarra de Manuel Ponce. (UNIVERSIDAD AUTÓNOMA DE MADRID, 2012)
- Thomas Christensen. The Spanish Baroque Guitar and Seventeenth-Century Triadic Theory (Journal of Music Theory, 1992)
- website of Stanley Yates offers few of his articles on playing Sor, Bach, Albeniz, Villa-Lobos, etc.
P.S. Elements of Sonata Theory by James Hepokoski & Warren Darcy was recommended here: viewtopic.php?f=31&t=107954