I found that there's a "output voltage accuracy" item in most LDO datasheet, the value is about 3% or less, I want to know how to get this value by spice simulation.
The answer is linked to the understanding why the regulated voltage varies.
Due to spread (relative and absolute) of LDO components. So you need to use extreme (fast & slow) models to simulate the LDO and Statistical models (montecarlo simulations) defined in your DK.
Re: how to simulate "output voltage accuracy" of L
You need to run the corner simulations and note down the Vout..
Keep the Vout which is in the normal condition as reference and note the percentage for fast and slow corners.This will give the output voltage accuracy.
Put on LDO user side: you need to know in all operating conditions what is the regulated voltage, so on a large population of parts in different ambient condition. The designer needs to identify this and address it.
If you load the regulator or use a different supply voltage, you need to know how much the regulated volage varies, so you have line and load regulation parameters.
For LDO output voltage accuracy, there are basically three specs.
(1) Load regulation: Change of VOUT vs different load
(2) Line regulation: Change of VOUT vs different input voltage variation
(3) Transient output variation: Change of VOUT across transient change of loading.
Of coz, above requires across PVT simulation to get the boundaries. So, above explantions tend to be NOT correct