hey ,
I build a booster converter and I do the switch operation using a transistor and set a frequency of 50K, why at high frequencies the RASPBERRY does not give voltage from 0 to 3.3V on the GPIO output, I only get 1.4-1.8V

No. Transistors are current amplifiers, so increasing the resistance will reduce the current. Decreasing the resistance should give better results.
For that transistor you can safely use a 1K resister as the base current limiter, the transistor will be fully on then.